From ed7faae947d4d33d0dbcd9753195eb077472fb77 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 15 May 2022 10:27:46 +0200 Subject: [PATCH] output preflight-checks nicely Signed-off-by: Michael Kaufmann --- lng/de.lng.php | 3 +++ lng/en.lng.php | 3 +++ templates/Froxlor/install/index.html.twig | 28 +++++++++++++++++++---- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/lng/de.lng.php b/lng/de.lng.php index c037fd10..fe2297f4 100644 --- a/lng/de.lng.php +++ b/lng/de.lng.php @@ -2145,6 +2145,9 @@ Vielen Dank, Ihr Administrator', 'manual_config' => 'Ich werden die Dienste manuell konfigurieren, direkt zum Login umleiten', ], 'errors' => [ + 'wrong_ownership' => 'Die froxlor Dateien gehören nicht vollständig dem Benutzer %s:%s', + 'missing_extensions' => 'Folgende PHP Erweiterungen werden zusätzlich benötigt', + 'suggestedextensions' => 'Folgende PHP Erweiterungen werden empfohlen', 'databaseexists' => 'Datenbank existiert bereits, Uberschreiben-Option oder anderen Namen wählen.', 'unabletocreatedb' => 'Test-Datenbank konnte nicht erstellt werden', 'unabletodropdb' => 'Test-Datenbank konnte nicht gelöscht werden', diff --git a/lng/en.lng.php b/lng/en.lng.php index 3530fbcc..fb38af24 100644 --- a/lng/en.lng.php +++ b/lng/en.lng.php @@ -2506,6 +2506,9 @@ Yours sincerely, your administrator', 'manual_config' => 'I will manually configure the services, just take me to the login', ], 'errors' => [ + 'wrong_ownership' => 'Make sure the froxlor files are owned by %s:%s', + 'missing_extensions' => 'The following php extensions are required and not installed', + 'suggestedextensions' => 'The following php extensions could not be found but are recommended', 'databaseexists' => 'Database already exist, please set override option to rebuild or chose another name', 'unabletocreatedb' => 'Test database could not be created', 'unabletodropdb' => 'Test database could not be dropped', diff --git a/templates/Froxlor/install/index.html.twig b/templates/Froxlor/install/index.html.twig index 1fb10084..6273c647 100644 --- a/templates/Froxlor/install/index.html.twig +++ b/templates/Froxlor/install/index.html.twig @@ -79,8 +79,19 @@ {% if preflight.criticals %}

{{ lng('install.critical_error') }}

{% endif %} @@ -88,8 +99,17 @@ {% if preflight.suggestions %}

{{ lng('install.suggestions') }}

{% endif %}