From a963f2e4749169cd8f919db48cfdf5529aff5db9 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 14 Mar 2011 23:26:50 +0100 Subject: [PATCH] problem installing in languages other than EN - part II --- includes/lang/gettext.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/lang/gettext.php b/includes/lang/gettext.php index 7d26256d..178ec3c8 100644 --- a/includes/lang/gettext.php +++ b/includes/lang/gettext.php @@ -91,6 +91,8 @@ class gettext_native_support setlocale(LC_NUMERIC, 'C'); // important for numeric presentation etc. if ($set === false) { + if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') // don't do this test if server is WIN + return 0; $str = sprintf('language code "%s", encoding "%s" not supported by your system', $lang_code, $encoding); //$err = new GetText_Error($str); -- 2.30.2