Skip to content

Commit

Permalink
setting the LANGUAGE env variable may be required by gettext to work
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Aug 22, 2023
1 parent 61232b1 commit 81de224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/common/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private function setLang($hardSetLang = 0)
}
$isRtl = \config\Master::LANGUAGES[$langIndex]['rtl'];
putenv("LC_ALL=" . $theLocale);
putenv("LANGUAGE=" . $theLocale);
$_SESSION['language'] = $langIndex;
$loggerInstance->debug(4, "selected lang:$langIndex:$theLocale\n");
$loggerInstance->debug(4, print_r($langConverted, true));
Expand Down

0 comments on commit 81de224

Please sign in to comment.