Workaround for LC_MESSAGES and some PHP versions
This commit is contained in:
parent
1e2877e863
commit
7727ffde73
@ -50,7 +50,7 @@ if (strtoupper(substr(PHP_OS,0,3))=='WIN'){
|
|||||||
putenv('LANGUAGE=');//sert à quoi?
|
putenv('LANGUAGE=');//sert à quoi?
|
||||||
setlocale(LC_ALL, $locale);
|
setlocale(LC_ALL, $locale);
|
||||||
setlocale(LC_TIME, $locale);
|
setlocale(LC_TIME, $locale);
|
||||||
//setlocale(LC_MESSAGES, $locale);
|
setlocale(5, $locale); // 5 = LC_MESSAGES (but LC_MESSAGES is not always present)
|
||||||
|
|
||||||
$domain = 'Studs';
|
$domain = 'Studs';
|
||||||
bindtextdomain($domain, 'locale');
|
bindtextdomain($domain, 'locale');
|
||||||
|
Loading…
Reference in New Issue
Block a user