From e117b16f29d092ffb1b638480aa0ae43ee24b16c Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Tue, 5 Jul 2022 21:16:10 +0200 Subject: [PATCH] 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. --- README.md | 8 +- front/deviceDetails.php | 137 +++++----- front/events.php | 24 +- front/index.php | 342 ------------------------- front/maintenance.php | 40 ++- front/php/templates/header.php | 3 - front/php/templates/language/de_de.php | 105 ++++++-- front/php/templates/language/en_us.php | 87 +++++-- front/presence.php | 2 +- 9 files changed, 276 insertions(+), 472 deletions(-) delete mode 100644 front/index.php diff --git a/README.md b/README.md index 3d84763d..bb16fe60 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,13 @@ A web frontal that allows: | ![Screen 5][screen5] | ![Screen 6][screen6] | With the work of [jokob-sk/Pi.Alert](https://github.com/jokob-sk/Pi.Alert) and own extensions, the new maintenance page was added with various possibilities for maintenance and settings: - - DB Backup and Restore - - Pause arp-scan + - Status Infos (active scans, database size, backup counter) - Theme Selection (blue, red, green, yellow, black, purple) + - Language Selection (english, german) - Light/Dark-Mode Switch + - Pause arp-scan - DB maintenance tools - -In addition, some information is available (active scans, database size, backup counter). + - DB Backup and Restore ![Maintain screen dark][maintain_dark] diff --git a/front/deviceDetails.php b/front/deviceDetails.php index aa7fb722..dfb5b2eb 100644 --- a/front/deviceDetails.php +++ b/front/deviceDetails.php @@ -25,11 +25,11 @@ @@ -45,7 +45,7 @@

--

- +
@@ -56,7 +56,7 @@

--

- +
@@ -67,7 +67,7 @@

--

- +
@@ -78,7 +78,7 @@

--

- +
@@ -94,11 +94,11 @@