Fix: Ajout posibilité de forcer LC_ALL et LC_TIME en cas de problème de locale.
This commit is contained in:
parent
e2381d70ad
commit
4cc925986f
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue