1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

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'])) { if (empty($_SESSION['locale'])) {
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
switch ($lang){ switch ($lang){
case "de":
$locale = "de_DE.UTF-8";
break;
case "fr": case "fr":
$locale = "fr_FR.UTF-8"; $locale = "fr_FR.UTF-8";
break; break;

View File

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