Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix non-working translations.

  • Loading branch information...
commit b331760e799dcbbd5a1f07cba3dcd883f1ccbc9c 1 parent d0b28df
Philippe Villiers authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/BwLang.class.php
9 lib/BwLang.class.php
View
@@ -69,11 +69,12 @@ public function getLangDetails($lang) {
public function setupLocale()
{
global $bwLocaleDir;
+
// Set locale
- _setlocale(LC_MESSAGES, $this->currentLanguage);
- _bindtextdomain('bestwishes', $bwLocaleDir);
- _bind_textdomain_codeset('bestwishes', 'UTF-8');
- _textdomain('bestwishes');
+ T_bind_textdomain_codeset('bestwishes', 'UTF-8');
+ T_bindtextdomain('bestwishes', $bwLocaleDir);
+ T_textdomain('bestwishes');
+ T_setlocale(LC_MESSAGES, $this->currentLanguage);
return true;
}
Please sign in to comment.
Something went wrong with that request. Please try again.