Skip to content

Commit

Permalink
Fix non-working translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
kissifrot committed Mar 29, 2012
1 parent d0b28df commit b331760
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/BwLang.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b331760

Please sign in to comment.