diff options
-rw-r--r-- | inc/infoutils.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php index 2361b9081..d602fc7b7 100644 --- a/inc/infoutils.php +++ b/inc/infoutils.php @@ -176,6 +176,16 @@ function check(){ msg('mb_string extension not available - PHP only replacements will be used',0); } + $loc = setlocale(LC_ALL, 0); + if(!$loc){ + msg('No valid locale is set for your PHP setup. You should fix this',-1); + }elseif(stripos($loc,'utf') === false){ + msg('Your locale <code>'.hsc($loc).'</code> seems not to be a UTF-8 locale, you should fix this if you encounter problems.',0); + }else{ + msg('Valid locale '.hsc($loc).' found.', 1); + } + + if($conf['allowdebug']){ msg('Debugging support is enabled. If you don\'t need it you should set $conf[\'allowdebug\'] = 0',-1); }else{ |