Skip to content
Snippets Groups Projects
Commit 7727ffde authored by Olivier PEREZ's avatar Olivier PEREZ
Browse files

Workaround for LC_MESSAGES and some PHP versions

parent 1e2877e8
Loading
......@@ -50,7 +50,7 @@ if (strtoupper(substr(PHP_OS,0,3))=='WIN'){
putenv('LANGUAGE=');//sert à quoi?
setlocale(LC_ALL, $locale);
setlocale(LC_TIME, $locale);
//setlocale(LC_MESSAGES, $locale);
setlocale(5, $locale); // 5 = LC_MESSAGES (but LC_MESSAGES is not always present)
$domain = 'Studs';
bindtextdomain($domain, 'locale');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment