Browse Source

Temporary fix for some gettext issues.

pull/40/head
Savetheinternet 11 years ago
parent
commit
a3f6420f00
  1. 13
      inc/functions.php

13
inc/functions.php

@ -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';

Loading…
Cancel
Save