Skip to content

Commit

Permalink
Fix Locale fail with '*'
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed Jun 15, 2019
1 parent 380c0b5 commit 76a1851
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/I18N.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public static function setupTextDomain() {
}

$lang = substr($TSUGI_LOCALE, 0, 2);
if ( $lang == '*' ) $lang = 'en'; // Symfony can't handle '*'
// error_log("lang=$lang");
$master_file = $CFG->dirroot."/locale/$lang/LC_MESSAGES/master.mo";
$domain_file = $CFG->getScriptPathFull()."/locale/$lang/LC_MESSAGES/$domain.mo";
Expand Down

0 comments on commit 76a1851

Please sign in to comment.