Temporary fix for some gettext issues.

This commit is contained in:
Savetheinternet 2011-11-17 03:13:49 +11:00
parent d4309b8963
commit a3f6420f00

View File

@ -113,9 +113,16 @@
$error('The specified locale (' . $config['locale'] . ') does not exist on your platform!');
}
_bindtextdomain('tinyboard', './inc/locale');
_bind_textdomain_codeset('tinyboard', 'UTF-8');
_textdomain('tinyboard');
if(extension_loaded('gettext')) {
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'])
require_once 'inc/contrib/recaptcha/recaptchalib.php';