From b9648e9d1e169522692a954340d415c0f2fb32a6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 4 Dec 2004 19:31:50 +0000 Subject: [PATCH] Trad: Traduction onglet "Fournisseur" --- htdocs/product/fiche.php | 10 ++++++---- htdocs/product/fournisseurs.php | 25 ++++++++++++++----------- htdocs/product/price.php | 8 +++++--- 3 files changed, 25 insertions(+), 18 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 53345d23324..f4cb24454ce 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -360,10 +360,12 @@ else $h++; } - $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; - $head[$h][1] = 'Fournisseurs'; - $h++; - + if ($conf->fournisseur->enabled) + { + $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; + $head[$h][1] = $langs->trans("Suppliers"); + $h++; + } } $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index ef34dd01718..7bc5ae27c73 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -111,17 +111,20 @@ if ($_GET["id"]) if($product->type == 0) { if ($conf->stock->enabled) - { - $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; - $head[$h][1] = 'Stock'; - $h++; - } - $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; - $head[$h][1] = 'Fournisseurs'; - $hselected = $h; - - $h++; - + { + $head[$h][0] = DOL_URL_ROOT."/product/stock/product.php?id=".$product->id; + $head[$h][1] = 'Stock'; + $h++; + } + + if ($conf->fournisseur->enabled) + { + $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; + $head[$h][1] = $langs->trans("Suppliers"); + $hselected = $h; + $h++; + } + } $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; diff --git a/htdocs/product/price.php b/htdocs/product/price.php index f3baa23c8f9..24fc0cd5b48 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -88,9 +88,11 @@ if($product->type == 0) $h++; } - $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; - $head[$h][1] = 'Fournisseurs'; - $h++; + if ($conf->fournisseur->enabled) { + $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; + $head[$h][1] = $langs->trans("Suppliers"); + $h++; + } }