Added locale support for de_DE, thanks Tino

This commit is contained in:
billz 2018-06-15 18:23:47 +00:00
parent b72ec32f4a
commit 9dd2fc2b65
2 changed files with 4 additions and 0 deletions

View file

@ -17,6 +17,9 @@
if (empty($_SESSION['locale'])) {
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
switch ($lang){
case "de":
$locale = "de_DE.UTF-8";
break;
case "fr":
$locale = "fr_FR.UTF-8";
break;

View file

@ -66,6 +66,7 @@ function DisplaySystem(){
// define locales
$arrLocales = array(
'en_GB.UTF-8' => 'English',
'de_DE.UTF-8' => 'Deutsche',
'fr_FR.UTF-8' => 'Français',
'it_IT.UTF-8' => 'Italiano',
'pt_BR.UTF-8' => 'Português',