From 4b330d213c377d401175afccf9a4306039ea1a2c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 12 Aug 2005 00:25:06 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Ajoute=20fonction=20de=20personalisation?= =?UTF-8?q?=20des=20param=E8tres=20interface=20par=20utilisateur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/functions.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index f8d60be89a0..09d57d6d3b7 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -240,9 +240,11 @@ function dolibarr_get_const($db, $name) function dolibarr_set_php_lang($code_lang) { $code_lang_tiret=ereg_replace('_','-',$code_lang); - + + dolibarr_syslog("dolibarr_set_php_lang: code_lang=$code_lang code_lang_tirer=$code_lang_tiret"); + setlocale(LC_ALL, $code_lang); // Compenser pb de locale avec windows - setlocale(LC_ALL, $code_lang); + setlocale(LC_ALL, $code_lang_tiret); if (defined("MAIN_FORCE_SETLOCALE_LC_ALL") && MAIN_FORCE_SETLOCALE_LC_ALL) setlocale(LC_ALL, MAIN_FORCE_SETLOCALE_LC_ALL); if (defined("MAIN_FORCE_SETLOCALE_LC_TIME") && MAIN_FORCE_SETLOCALE_LC_TIME) setlocale(LC_TIME, MAIN_FORCE_SETLOCALE_LC_TIME); if (defined("MAIN_FORCE_SETLOCALE_LC_NUMERIC") && MAIN_FORCE_SETLOCALE_LC_NUMERIC) setlocale(LC_NUMERIC, MAIN_FORCE_SETLOCALE_LC_NUMERIC);