fix a locale issue
This commit is contained in:
parent
f053450edf
commit
6fd4eb2add
@ -32,7 +32,7 @@ loadConfig();
|
|||||||
function init_locale($locale, $error='error') {
|
function init_locale($locale, $error='error') {
|
||||||
if (extension_loaded('gettext')) {
|
if (extension_loaded('gettext')) {
|
||||||
if (setlocale(LC_ALL, $locale) === false) {
|
if (setlocale(LC_ALL, $locale) === false) {
|
||||||
$error('The specified locale (' . $locale . ') does not exist on your platform!');
|
//$error('The specified locale (' . $locale . ') does not exist on your platform!');
|
||||||
}
|
}
|
||||||
bindtextdomain('tinyboard', './inc/locale');
|
bindtextdomain('tinyboard', './inc/locale');
|
||||||
bind_textdomain_codeset('tinyboard', 'UTF-8');
|
bind_textdomain_codeset('tinyboard', 'UTF-8');
|
||||||
|
Loading…
Reference in New Issue
Block a user