diff --git a/htdocs/admin/produit.php b/htdocs/admin/produit.php
index 91fe4999e30..567bece856e 100644
--- a/htdocs/admin/produit.php
+++ b/htdocs/admin/produit.php
@@ -134,6 +134,20 @@ else if ($_GET["action"] == 'disable_sousproduits')
exit;
}
+// Multilangs
+if ($_GET['action'] == 'enable_multilangs')
+{
+ dolibarr_set_const($db, "PRODUIT_MULTILANGS", "1");
+ Header("Location: produit.php");
+
+}
+else if ($_GET['action'] == 'disable_multilangs')
+{
+ dolibarr_del_const($db, "PRODUIT_MULTILANGS");
+ Header("Location: produit.php");
+ exit;
+}
+
/*
* Affiche page
@@ -237,6 +251,29 @@ print '';
print '';
print '';
+// multilangs activation/desactivation
+print '
';
+print '
| '.$langs->trans("Name").' | '; +print ''; +print ' | '.$langs->trans("Active").' | '; +print "
| '.$langs->trans("MultilangsAbility").' | '; +print ''; +if($conf->global->PRODUIT_MULTILANGS == 1) + print img_tick(); +print ' | '; +print ""; +if($conf->global->PRODUIT_MULTILANGS == 0) +print ''.$langs->trans("Activate").''; +else if($conf->global->PRODUIT_MULTILANGS == 1) + print ''.$langs->trans("Disable").''; +print " | "; +print '