projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30d1002
)
problem installing in languages other than EN - part II
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 14 Mar 2011 22:26:50 +0000
(23:26 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 14 Mar 2011 22:26:50 +0000
(23:26 +0100)
includes/lang/gettext.php
patch
|
blob
|
history
diff --git
a/includes/lang/gettext.php
b/includes/lang/gettext.php
index 7d26256d51a2917f28e234dfb010a11ff7c50b68..178ec3c8ab345783eac74eeacde901e7240699ee 100644
(file)
--- 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);