From 15a1ff2f83c2e1bb921e2b49862fcaa10ab4046f Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 11 Sep 2022 17:08:24 +0200 Subject: [PATCH] translate welcome-screen for unconfigured installations Signed-off-by: Michael Kaufmann --- lng/de.lng.php | 5 +++++ lng/en.lng.php | 5 +++++ templates/Froxlor/user/index.html.twig | 6 +++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lng/de.lng.php b/lng/de.lng.php index c9e0f533..ec4075ac 100644 --- a/lng/de.lng.php +++ b/lng/de.lng.php @@ -2200,4 +2200,9 @@ Vielen Dank, Ihr Administrator', 'notyetconfigured' => 'Es scheint als wären die Dienste (noch) nicht erfolgreich konfiguriert worden. Bitte den angezeigten Befehl ausführen oder überspringen (direkt zum Login)' ] ], + 'welcome' => [ + 'title' => 'Willkommen bei froxlor!', + 'config_note' => 'Damit froxlor mit dem Backend vernünftig kommunizieren kann, musst du dieses noch konfigurieren.', + 'config_now' => 'Jetzt konfigurieren' + ], ]; diff --git a/lng/en.lng.php b/lng/en.lng.php index 6aa676fc..60810149 100644 --- a/lng/en.lng.php +++ b/lng/en.lng.php @@ -2327,4 +2327,9 @@ Yours sincerely, your administrator', 'notyetconfigured' => 'It seems that the services were not yet configured (successfully). Please either run the command shown below or check the box to do it later.' ] ], + 'welcome' => [ + 'title' => 'Welcome to froxlor!', + 'config_note' => 'In order for froxlor to be able to communicate properly with the backend, you have to configure it.', + 'config_now' => 'Configure now' + ], ]; diff --git a/templates/Froxlor/user/index.html.twig b/templates/Froxlor/user/index.html.twig index 8d0d8311..eba6abf0 100644 --- a/templates/Froxlor/user/index.html.twig +++ b/templates/Froxlor/user/index.html.twig @@ -5,9 +5,9 @@ {% if get_setting('panel.is_configured') == 0 and userinfo.adminsession == 1 and userinfo.change_serversettings == 1 %}
-

Willkommen bei Froxlor!

-

Damit Froxlor mit dem Backend vernünftig kommunizieren kann, musst du dieses noch Konfigurieren.

- Jetzt konfigurieren +

{{ lng('welcome.title') }}

+

{{ lng('welcome.config_note') }}

+ {{ lng('welcome.config_now') }}