diff --git a/source/class/cv/Application.js b/source/class/cv/Application.js index 2201a33944..c7973ff87e 100644 --- a/source/class/cv/Application.js +++ b/source/class/cv/Application.js @@ -1071,18 +1071,32 @@ qx.Class.define('cv.Application', { method: 'GET', accept: 'application/json' }); + const failedCheck = (errorText, disableReason) => { + this.setServerHasPhpSupport(false); + this.error(errorText); + + this.setManagerDisabled(true); + this.setManagerDisabledReason(disableReason); + this.setManagerChecked(true); + }; xhr.addListenerOnce('success', e => { const req = e.getTarget(); const env = req.getResponse(); - if (typeof env === 'string' && env.startsWith(' { - this.setManagerChecked(true); + failedCheck( + qx.locale.Manager.tr('Disabling manager due to failed PHP request querying the environment.'), + qx.locale.Manager.tr('Failed PHP request querying the environment.') + ); }); xhr.send(); } diff --git a/source/translation/de.po b/source/translation/de.po index 138727f31b..6cdf7f84be 100644 --- a/source/translation/de.po +++ b/source/translation/de.po @@ -1156,10 +1156,6 @@ msgstr "Datei \"%1\" wurde umbenannt in \"%2\"" msgid "Folder \"%1\" has been renamed to \"%2\"" msgstr "Ordner \"%1\" wurde umbenannt in \"%2\"" -#: cv/Application.js -msgid "Your server does not support PHP" -msgstr "Ihr Server unterstützt kein PHP" - #: cv/ui/manager/Main.js msgid "Server" msgstr "Server" @@ -1224,3 +1220,23 @@ msgstr "Jahr" #: cv/ui/structure/tile/widgets/Tile.js msgid "Last update: %1" msgstr "Letzte Aktualisierung: %1" + +#: cv/Application.js +msgid "Disabling manager due to missing PHP support." +msgstr "Manager ist deaktiviert aufgrund von fehlender Unterstützung von PHP." + +#: cv/Application.js +msgid "Your server does not support PHP." +msgstr "Ihr Server unterstützt kein PHP." + +#: cv/Application.js +msgid "Disabling manager due to failed PHP request querying the environment." +msgstr "Manager ist deaktiviert aufgrund eines fehlerhaften PHP Aufrufs während der 'environment'-Abfrage." + +#: cv/Application.js +msgid "Failed PHP request querying the environment." +msgstr "PHP Abfrage des 'environment' fehlgeschlagen." + +#: cv/ui/structure/tile/widgets/Tile.js +msgid "Last update: unknown" +msgstr "Letzte Aktualisierung: unbekannt" diff --git a/source/translation/en.po b/source/translation/en.po index c34e42bc21..865e845f7f 100644 --- a/source/translation/en.po +++ b/source/translation/en.po @@ -198,7 +198,7 @@ msgstr "" msgid "Save as..." msgstr "" -#: cv/ui/manager/contextmenu/FileItem.js +#: cv/ui/manager/contextmenu/ConfigElement.js msgid "Delete" msgstr "" @@ -1020,7 +1020,7 @@ msgstr "" msgid "Edit text content" msgstr "" -#: cv/ui/manager/MenuBar.js +#: cv/ui/manager/Main.js msgid "About" msgstr "" @@ -1248,10 +1248,6 @@ msgstr "" msgid "Folder \"%1\" has been renamed to \"%2\"" msgstr "" -#: cv/Application.js -msgid "Your server does not support PHP" -msgstr "" - #: cv/ui/manager/Main.js msgid "Server" msgstr "" @@ -1344,3 +1340,23 @@ msgstr "" #: cv/ui/structure/tile/widgets/Tile.js msgid "Last update: %1" msgstr "" + +#: cv/Application.js +msgid "Disabling manager due to missing PHP support." +msgstr "" + +#: cv/Application.js +msgid "Your server does not support PHP." +msgstr "" + +#: cv/Application.js +msgid "Disabling manager due to failed PHP request querying the environment." +msgstr "" + +#: cv/Application.js +msgid "Failed PHP request querying the environment." +msgstr "" + +#: cv/ui/structure/tile/widgets/Tile.js +msgid "Last update: unknown" +msgstr ""