From 4cc925986f6402ef8b315f6b7406fb698addec25 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 3 Jul 2005 13:25:00 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Ajout=20posibilit=E9=20de=20forcer=20LC?= =?UTF-8?q?=5FALL=20et=20LC=5FTIME=20en=20cas=20de=20probl=E8me=20de=20loc?= =?UTF-8?q?ale.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/master.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index 1393fd6fc38..4b500e8f166 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -175,6 +175,8 @@ $conf->langage_tiret=ereg_replace('_','-',$conf->langage); setlocale(LC_ALL, $conf->langage_tiret); // Compenser pb de locale avec windows setlocale(LC_ALL, $conf->langage); +if (defined("MAIN_FORCE_SETLOCALE_LC_ALL")) setlocale(LC_ALL, MAIN_FORCE_SETLOCALE_LC_ALL); +if (defined("MAIN_FORCE_SETLOCALE_LC_TIME")) setlocale(LC_ALL, MAIN_FORCE_SETLOCALE_LC_TIME); require_once(DOL_DOCUMENT_ROOT ."/translate.class.php"); $langs = new Translate(DOL_DOCUMENT_ROOT ."/langs", $conf->langage);