From 76a18517a80d0f1ad5bea659ef1f522c154988a3 Mon Sep 17 00:00:00 2001 From: Charles Severance Date: Sat, 15 Jun 2019 09:50:50 -0400 Subject: [PATCH] Fix Locale fail with '*' --- src/Core/I18N.php | 1 + 1 file changed, 1 insertion(+) 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";