diff --git a/src/Core/I18N.php b/src/Core/I18N.php index 4604389a..a6cedbec 100644 --- a/src/Core/I18N.php +++ b/src/Core/I18N.php @@ -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";