From: Joe Hunt Date: Mon, 14 Mar 2011 22:26:50 +0000 (+0100) Subject: problem installing in languages other than EN - part II X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=360059d7812ca41651b53ca026c739a63cd5abe8;p=textcart.git problem installing in languages other than EN - part II --- diff --git a/includes/lang/gettext.php b/includes/lang/gettext.php index 7d26256..178ec3c 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);