From cc160e3e20f5183f7c366bea5797cdc27205a19c Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Thu, 7 Dec 2023 14:48:18 +0100 Subject: [PATCH] Error page: Add translation --- resources/lang/de_DE/default.po | 3 +++ resources/lang/en_US/default.po | 3 +++ resources/views/errors/default.twig | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/lang/de_DE/default.po b/resources/lang/de_DE/default.po index 54b07ca5..29fc9c27 100644 --- a/resources/lang/de_DE/default.po +++ b/resources/lang/de_DE/default.po @@ -32,6 +32,9 @@ msgstr "" msgid "password.email.message" msgstr "Um dein Passwort zurückzusetzen, besuche %s" +msgid "page.error.title" +msgstr "Fehler %s" + msgid "page.403.title" msgstr "Nicht erlaubt" diff --git a/resources/lang/en_US/default.po b/resources/lang/en_US/default.po index 37b1dd3f..f2fc3e86 100644 --- a/resources/lang/en_US/default.po +++ b/resources/lang/en_US/default.po @@ -46,6 +46,9 @@ msgstr "You are not allowed to access this page" msgid "page.403.login" msgstr "Please log in." +msgid "page.error.title" +msgstr "Error %s" + msgid "page.404.title" msgstr "Page not found" diff --git a/resources/views/errors/default.twig b/resources/views/errors/default.twig index e3c76d15..60770611 100644 --- a/resources/views/errors/default.twig +++ b/resources/views/errors/default.twig @@ -1,6 +1,6 @@ {% extends "layouts/app.twig" %} -{% block title %}Error {{ status }}{% endblock %} +{% block title %}{{ __('page.error.title', [status]) }}{% endblock %} {% block content %}
@@ -8,7 +8,7 @@