From 9dd2fc2b654a7a6216c93de43a828ec0d7414703 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 15 Jun 2018 18:23:47 +0000 Subject: [PATCH] Added locale support for de_DE, thanks Tino --- includes/locale.php | 3 +++ includes/system.php | 1 + 2 files changed, 4 insertions(+) diff --git a/includes/locale.php b/includes/locale.php index 5433bf4a..f4ab8957 100755 --- a/includes/locale.php +++ b/includes/locale.php @@ -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; diff --git a/includes/system.php b/includes/system.php index e76739f0..8f858f2f 100755 --- a/includes/system.php +++ b/includes/system.php @@ -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',