X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Flang%2Fgettext.php;h=16768d677df3041406fd406fc8c22688d7e1f1df;hb=cdea200a3f1f1c3ebb65f9afae864bf8cde43c6a;hp=9cedafc63ec21f5d435029785620f84646a07b78;hpb=801daf613bf5f99332f1b21a9710ad69d30de4e9;p=fa-stable.git diff --git a/includes/lang/gettext.php b/includes/lang/gettext.php index 9cedafc6..16768d67 100644 --- a/includes/lang/gettext.php +++ b/includes/lang/gettext.php @@ -80,10 +80,13 @@ class gettext_native_support $lshort = strtr($up, '-',''); $ushort = strtr($low, '-',''); - $set = setlocale(LC_ALL, $lang_code.".".$encoding, - $lang_code.".".$up, $lang_code.".".$low, - $lang_code.".".$ushort, $lang_code.".".$lshort); - + if ($lang_code == 'C') + $set = setlocale(LC_ALL,'C'); + else + $set = setlocale(LC_ALL, $lang_code.".".$encoding, + $lang_code.".".$up, $lang_code.".".$low, + $lang_code.".".$ushort, $lang_code.".".$lshort); + setlocale(LC_NUMERIC, 'C'); // important for numeric presentation etc. if ($set === false) {