Workaround for LC_MESSAGES and some PHP versions

This commit is contained in:
Olivier PEREZ 2015-01-05 23:31:12 +01:00
parent 1e2877e863
commit 7727ffde73

View File

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