diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index b0851e22b52..5cd0322d0dd 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -67,4 +67,18 @@ Pack=Pack Packs=Packs NoteNotVisibleOnBill=Note (not visible on invoices, proposals...) CreateCopy=Create copy -ServiceLimitedDuration=If produced of service type at limited duration: \ No newline at end of file +ServiceLimitedDuration=If produced of service type at limited duration: +MultiPricesAbility=Activate the multi-prices +MultiPricesNumPrices=Number of price +MultiPriceLevelsName=Price categories +AssociatedProductsAbility=Activate the associated products +AssociatedProducts=Associated products +AssociatedProductsNumber=Number of associated products +EditAssociate=Associated +Translation=Translation +KeywordFilter=Keyword filter +CategoryFilter=Category filter +ProductToAddSearch=Search product to add +AddDel=Add/Delete +Quantity=Quantity +NoMatchFound=No match found \ No newline at end of file diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang index 4ce473a2366..b9b24b6177c 100644 --- a/htdocs/langs/fr_FR/products.lang +++ b/htdocs/langs/fr_FR/products.lang @@ -85,7 +85,8 @@ MultiPriceLevelsName=Cat AssociatedProductsAbility=Prise en charges des produits associés AssociatedProducts=Produits associés AssociatedProductsNumber=Nbre de produits associés -EditAssociate=Associer au +EditAssociate=Associer au +Translation=Traduction KeywordFilter=Filtre par mot-clé CategoryFilter=Filtre par catégorie ProductToAddSearch=Recherche des produits à ajouter diff --git a/htdocs/product/barcode.php b/htdocs/product/barcode.php index 26373da3aed..62b1debeb22 100644 --- a/htdocs/product/barcode.php +++ b/htdocs/product/barcode.php @@ -101,6 +101,14 @@ if($product->type == 0) } } +// Multilangs +if($conf->global->PRODUIT_MULTILANGS == 1) +{ + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; +} + if ($conf->fournisseur->enabled) { $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; $head[$h][1] = $langs->trans("Suppliers"); @@ -111,12 +119,13 @@ $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; $head[$h][1] = $langs->trans("Statistics"); $h++; -//erics: pour créer des produits composés de x 'sous' produits -/* -$head[$h][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id; -$head[$h][1] = $langs->trans('Packs'); -$h++; -*/ +// sousproduits +if($conf->global->PRODUIT_SOUSPRODUITS == 1) +{ + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $h++; +} $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans("Referers"); diff --git a/htdocs/product/categorie.php b/htdocs/product/categorie.php index 9c57bbc8026..eb132648d05 100644 --- a/htdocs/product/categorie.php +++ b/htdocs/product/categorie.php @@ -127,6 +127,14 @@ if ($_GET["id"] || $_GET["ref"]) $h++; } } + + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; + } if ($conf->fournisseur->enabled) { @@ -138,6 +146,7 @@ if ($_GET["id"] || $_GET["ref"]) $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; $head[$h][1] = $langs->trans('Statistics'); $h++; + // sousproduits if($conf->global->PRODUIT_SOUSPRODUITS == 1) { @@ -145,6 +154,7 @@ if ($_GET["id"] || $_GET["ref"]) $head[$h][1] = $langs->trans('AssociatedProducts'); $h++; } + $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans('Referers'); $h++; diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 7955ea306c1..11068633c29 100755 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -143,6 +143,14 @@ if ($product->id) $h++; } } + + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; + } if ($conf->fournisseur->enabled) { diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 269e0734ea9..6a7367b774a 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -211,25 +211,33 @@ if ($_GET["id"] || $_GET["ref"]) } } + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $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; $head[$h][1] = $langs->trans('Statistics'); $h++; // sousproduits - if($conf->global->PRODUIT_SOUSPRODUITS == 1) - { - $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; - $head[$h][1] = $langs->trans('AssociatedProducts'); - $h++; - } + if($conf->global->PRODUIT_SOUSPRODUITS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $h++; + } $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans('Referers'); diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index 98940d35a0f..fc7eea29e34 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -140,6 +140,14 @@ if ($_GET["id"] || $_GET["ref"]) } } + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; + } + if ($conf->fournisseur->enabled) { $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 97d7e9dd347..3ac6162b200 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -141,6 +141,14 @@ if($product->type == 0) } } +// Multilangs +if($conf->global->PRODUIT_MULTILANGS == 1) +{ + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; +} + if ($conf->fournisseur->enabled) { $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; $head[$h][1] = $langs->trans("Suppliers"); @@ -150,6 +158,7 @@ if ($conf->fournisseur->enabled) { $head[$h][0] = DOL_URL_ROOT."/product/stats/fiche.php?id=".$product->id; $head[$h][1] = $langs->trans("Statistics"); $h++; + // sousproduits if($conf->global->PRODUIT_SOUSPRODUITS == 1) { @@ -158,13 +167,6 @@ if($conf->global->PRODUIT_SOUSPRODUITS == 1) $h++; } -//erics: pour créer des produits composés de x 'sous' produits -/* -$head[$h][0] = DOL_URL_ROOT."/product/pack.php?id=".$product->id; -$head[$h][1] = $langs->trans('Packs'); -$h++; -*/ - $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans("Referers"); $h++; diff --git a/htdocs/product/sousproduits/fiche.php b/htdocs/product/sousproduits/fiche.php index e1d9bb0dbc2..d13670a947a 100644 --- a/htdocs/product/sousproduits/fiche.php +++ b/htdocs/product/sousproduits/fiche.php @@ -207,6 +207,14 @@ if ($id || $ref) $h++; } } + + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; + } if ($conf->fournisseur->enabled) { @@ -219,14 +227,14 @@ if ($id || $ref) $head[$h][1] = $langs->trans('Statistics'); $h++; - // sousproduits + // sousproduits if($conf->global->PRODUIT_SOUSPRODUITS == 1) - { - $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; - $head[$h][1] = $langs->trans('AssociatedProducts'); - $hselected = $h; - $h++; - } + { + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $hselected = $h; + $h++; + } $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; diff --git a/htdocs/product/stats/facture.php b/htdocs/product/stats/facture.php index 49af242bbef..edc29b43c80 100644 --- a/htdocs/product/stats/facture.php +++ b/htdocs/product/stats/facture.php @@ -119,6 +119,14 @@ if ($_GET["id"] || $_GET["ref"]) $h++; } } + + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; + } if ($conf->fournisseur->enabled) { @@ -131,13 +139,13 @@ if ($_GET["id"] || $_GET["ref"]) $head[$h][1] = $langs->trans('Statistics'); $h++; - // sousproduits - if($conf->global->PRODUIT_SOUSPRODUITS == 1) - { - $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; - $head[$h][1] = $langs->trans('AssociatedProducts'); - $h++; - } + // sousproduits + if($conf->global->PRODUIT_SOUSPRODUITS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $h++; + } $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans('Referers'); diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index d96a79a85e9..bb8ec3bfee2 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -167,6 +167,14 @@ if ($_GET["id"] || $_GET["ref"]) $h++; } } + + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; + } if ($conf->fournisseur->enabled) { @@ -180,13 +188,13 @@ if ($_GET["id"] || $_GET["ref"]) $hselected=$h; $h++; - // sousproduits - if($conf->global->PRODUIT_SOUSPRODUITS == 1) - { - $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; - $head[$h][1] = $langs->trans('AssociatedProducts'); - $h++; - } + // sousproduits + if($conf->global->PRODUIT_SOUSPRODUITS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $h++; + } $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans('Referers'); diff --git a/htdocs/product/stock/product.php b/htdocs/product/stock/product.php index 4f4787f55b3..ffb5825eb27 100644 --- a/htdocs/product/stock/product.php +++ b/htdocs/product/stock/product.php @@ -152,6 +152,15 @@ if ($_GET["id"] || $_GET["ref"]) $h++; } } + + // Multilangs + if($conf->global->PRODUIT_MULTILANGS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/traduction.php?id=".$product->id; + $head[$h][1] = $langs->trans("Translation"); + $h++; + } + if ($conf->fournisseur->enabled) { $head[$h][0] = DOL_URL_ROOT."/product/fournisseurs.php?id=".$product->id; $head[$h][1] = $langs->trans("Suppliers"); @@ -162,13 +171,13 @@ if ($_GET["id"] || $_GET["ref"]) $head[$h][1] = $langs->trans("Statistics"); $h++; - // sousproduits - if($conf->global->PRODUIT_SOUSPRODUITS == 1) - { - $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; - $head[$h][1] = $langs->trans('AssociatedProducts'); - $h++; - } + // sousproduits + if($conf->global->PRODUIT_SOUSPRODUITS == 1) + { + $head[$h][0] = DOL_URL_ROOT."/product/sousproduits/fiche.php?id=".$product->id; + $head[$h][1] = $langs->trans('AssociatedProducts'); + $h++; + } $head[$h][0] = DOL_URL_ROOT."/product/stats/facture.php?id=".$product->id; $head[$h][1] = $langs->trans('Referers');