From 7727ffde739f71413f862b67f30fd544835685ab Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Mon, 5 Jan 2015 23:31:12 +0100 Subject: [PATCH] Workaround for LC_MESSAGES and some PHP versions --- app/inc/i18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/inc/i18n.php b/app/inc/i18n.php index 447518f..025efe7 100644 --- a/app/inc/i18n.php +++ b/app/inc/i18n.php @@ -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');