problem installing in languages other than EN - part II
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 14 Mar 2011 22:26:50 +0000 (23:26 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 14 Mar 2011 22:26:50 +0000 (23:26 +0100)
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);