Add Multi-Language Support (almost finished)

approx. 90% are already translated. At the moment 2 languages are included. English and German. If you are interested, feel free to add more translations. See the maintenance.php for more information. The Frontend is almost done. Some translations in the notification system are still pending.

I am aware that the language files still have some optimization potential, but after 3 days of localization, I don't feel like doing that right now.
This commit is contained in:
leiweibau
2022-07-05 21:16:10 +02:00
parent 1cbb5eb68a
commit 959af4027f
9 changed files with 276 additions and 472 deletions

View File

@@ -20,9 +20,7 @@ if (strlen($pia_skin_selected) == 0) {$pia_skin_selected = 'skin-blue';}
foreach (glob("../db/setting_language*") as $filename) {
$pia_lang_selected = str_replace('setting_language_','',basename($filename));
}
if (strlen($pia_lang_selected) == 0) {$pia_lang_selected = 'en_us';}
require 'php/templates/language/'.$pia_lang_selected.'.php';
?>
@@ -75,7 +73,6 @@ require 'php/templates/language/'.$pia_lang_selected.'.php';
<!-- For better UX on Mobile Devices using the Shortcut on the Homescreen -->
<link rel="manifest" href="img/manifest.json">
<!-- Dark-Mode Patch -->
<?php
if ($ENABLED_DARKMODE === True) {