From c4f4d5bd6244117d505dac7b32cd2c5760652e3d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 14 Jul 2004 10:34:26 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20bug=20sur=20la=20d=E9finition=20du?= =?UTF-8?q?=20language?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/main.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 6546214e419..a68d0e34eea 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -191,10 +191,10 @@ if (! defined(MAIN_LANG_DEFAULT)) $conf->langage=MAIN_LANG_DEFAULT; // On corrige $conf->language si il ne vaut pas le code long: fr_FR par exemple -if (strlen($conf->language) <= 3) { +if (strlen($conf->langage) <= 3) { $conf->langage = strtolower($conf->langage)."_".strtoupper($conf->langage); } -setlocale(LC_ALL, $conf->language); +setlocale(LC_ALL, $conf->langage); //setlocale(LC_TIME, $conf->language); require (DOL_DOCUMENT_ROOT ."/translate.class.php");