Correction bug sur la dfinition du language

This commit is contained in:
Rodolphe Quiedeville 2004-07-14 10:34:26 +00:00
parent cc1db7b69c
commit c4f4d5bd62

View File

@ -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");