Merged changes up to version 2.3.4 into unstable.
[fa-stable.git] / includes / lang / gettext.php
index 7d26256d51a2917f28e234dfb010a11ff7c50b68..178ec3c8ab345783eac74eeacde901e7240699ee 100644 (file)
@@ -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);