diff --git a/htdocs/product/traduction.php b/htdocs/product/traduction.php index 8cf24c3d3e936..2fb31ada33ca7 100644 --- a/htdocs/product/traduction.php +++ b/htdocs/product/traduction.php @@ -1,7 +1,7 @@ * Copyright (C) 2007 Rodolphe Quiedeville - * Copyright (C) 2010 Destailleur Laurent + * Copyright (C) 2010-2012 Destailleur Laurent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -63,7 +63,7 @@ $current_lang = $langs->getDefaultLang(); // update de l'objet - if ( $_POST["translang"] == $current_lang ) + if ( $_POST["forcelangprod"] == $current_lang ) { $product->libelle = $_POST["libelle"]; $product->description = dol_htmlcleanlastbr($_POST["desc"]); @@ -71,9 +71,9 @@ } else { - $product->multilangs[$_POST["translang"]]["libelle"] = $_POST["libelle"]; - $product->multilangs[$_POST["translang"]]["description"] = dol_htmlcleanlastbr($_POST["desc"]); - $product->multilangs[$_POST["translang"]]["note"] = dol_htmlcleanlastbr($_POST["note"]); + $product->multilangs[$_POST["forcelangprod"]]["libelle"] = $_POST["libelle"]; + $product->multilangs[$_POST["forcelangprod"]]["description"] = dol_htmlcleanlastbr($_POST["desc"]); + $product->multilangs[$_POST["forcelangprod"]]["note"] = dol_htmlcleanlastbr($_POST["note"]); } // sauvegarde en base @@ -240,7 +240,7 @@ print ''; print ''; print ''; print '
'.$langs->trans('Translation').''; - print $formadmin->select_language('','translang',0,$product->multilangs); + print $formadmin->select_language('','forcelangprod',0,$product->multilangs); print '
'.$langs->trans('Label').'
'.$langs->trans('Description').'';