Temporary fix for some gettext issues.
This commit is contained in:
parent
d4309b8963
commit
a3f6420f00
@ -113,9 +113,16 @@
|
|||||||
$error('The specified locale (' . $config['locale'] . ') does not exist on your platform!');
|
$error('The specified locale (' . $config['locale'] . ') does not exist on your platform!');
|
||||||
|
|
||||||
}
|
}
|
||||||
_bindtextdomain('tinyboard', './inc/locale');
|
|
||||||
_bind_textdomain_codeset('tinyboard', 'UTF-8');
|
if(extension_loaded('gettext')) {
|
||||||
_textdomain('tinyboard');
|
bindtextdomain('tinyboard', './inc/locale');
|
||||||
|
bind_textdomain_codeset('tinyboard', 'UTF-8');
|
||||||
|
textdomain('tinyboard');
|
||||||
|
} else {
|
||||||
|
_bindtextdomain('tinyboard', './inc/locale');
|
||||||
|
_bind_textdomain_codeset('tinyboard', 'UTF-8');
|
||||||
|
_textdomain('tinyboard');
|
||||||
|
}
|
||||||
|
|
||||||
if($config['recaptcha'])
|
if($config['recaptcha'])
|
||||||
require_once 'inc/contrib/recaptcha/recaptchalib.php';
|
require_once 'inc/contrib/recaptcha/recaptchalib.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user