Fixes issue #64

This commit is contained in:
thnilsen
2020-05-23 17:03:08 +02:00
parent 41fd9a2745
commit 02cd19a439
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -27,6 +27,7 @@ if (!isset($_SESSION['locale'])||isset($_GET['lang']))
$_SESSION['locale'] = $best_match;
}
putenv('LANGUAGE='.$_SESSION['locale'].'.UTF-8');
setlocale(LC_ALL, $_SESSION['locale'].".UTF-8");
setlocale(LC_MESSAGES, $_SESSION['locale'].".UTF-8");
bindtextdomain("server-status", __DIR__ . "/locale/");