forked from leftypol/leftypol
fix a locale issue
This commit is contained in:
parent
f053450edf
commit
6fd4eb2add
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue