Error page: Add translation

This commit is contained in:
Igor Scheller 2023-12-07 14:48:18 +01:00 committed by msquare
parent bcfcb95786
commit cc160e3e20
3 changed files with 8 additions and 2 deletions

View File

@ -32,6 +32,9 @@ msgstr ""
msgid "password.email.message" msgid "password.email.message"
msgstr "Um dein Passwort zurückzusetzen, besuche %s" msgstr "Um dein Passwort zurückzusetzen, besuche %s"
msgid "page.error.title"
msgstr "Fehler %s"
msgid "page.403.title" msgid "page.403.title"
msgstr "Nicht erlaubt" msgstr "Nicht erlaubt"

View File

@ -46,6 +46,9 @@ msgstr "You are not allowed to access this page"
msgid "page.403.login" msgid "page.403.login"
msgstr "Please log in." msgstr "Please log in."
msgid "page.error.title"
msgstr "Error %s"
msgid "page.404.title" msgid "page.404.title"
msgstr "Page not found" msgstr "Page not found"

View File

@ -1,6 +1,6 @@
{% extends "layouts/app.twig" %} {% extends "layouts/app.twig" %}
{% block title %}Error {{ status }}{% endblock %} {% block title %}{{ __('page.error.title', [status]) }}{% endblock %}
{% block content %} {% block content %}
<div class="container"> <div class="container">
@ -8,7 +8,7 @@
<div class="alert alert-info" role="alert"> <div class="alert alert-info" role="alert">
{% block content_headline %} {% block content_headline %}
<h2>{% block content_headline_text %}Error {{ status }}{% endblock %}</h2> <h2>{% block content_headline_text %}{{ __('page.error.title', [status]) }}{% endblock %}</h2>
{% endblock %} {% endblock %}
{% block content_text %} {% block content_text %}