Added error page translations

This commit is contained in:
Igor Scheller 2023-11-24 16:20:12 +01:00
parent 47ad0a6133
commit 1b91d84b5f
9 changed files with 43 additions and 24 deletions

View File

@ -32,25 +32,25 @@ msgstr ""
msgid "password.email.message"
msgstr "Bitte besuche %s, um Dein Passwort zurückzusetzen."
msgid "Forbidden"
msgid "page.403.title"
msgstr "Nicht erlaubt"
msgid "You are not allowed to access this page"
msgid "page.403.headline"
msgstr "Du darfst diese Seite nicht aufrufen"
msgid "Page not found"
msgid "page.404.title"
msgstr "Seite nicht gefunden"
msgid "No sleep found"
msgstr "No sleep found"
msgid "page.404.not_found"
msgstr "Schlaf nicht auffindbar"
msgid "405: Method not allowed"
msgstr "405: Method not allowed"
msgid "page.405.title"
msgstr "405: Anfragetyp nicht erlaubt"
msgid "Authentication expired"
msgid "page.419.title"
msgstr "Autorisierung ist abgelaufen"
msgid "The provided CSRF token is invalid or has expired"
msgid "page.419.text"
msgstr "Das angegebene CSRF Token ist ungültig oder abgelaufen"
msgid "general.date"
@ -135,8 +135,7 @@ msgid "login.do"
msgstr "Was kann ich machen?"
msgid "login.jobs"
msgstr ""
"Bitte informiere Dich über die Tätigkeiten bei denen Du uns helfen kannst."
msgstr "Informiere Dich über die Tätigkeiten bei denen Du uns helfen kannst."
msgid "login.cookies"
msgstr "Hinweis: Cookies müssen aktiviert sein!"

View File

@ -34,14 +34,35 @@ msgstr "Name"
msgid "general.description"
msgstr "Description"
msgid "page.403.title"
msgstr "Forbidden"
msgid "page.403.headline"
msgstr "You are not allowed to access this page"
msgid "page.403.login"
msgstr "Please log in."
msgid "page.404.title"
msgstr "Page not found"
msgid "page.404.not_found"
msgstr "No sleep found"
msgid "page.404.text"
msgstr ""
"This page could not be found or you don't have permission to view it. "
"You probably have to sign in or register in order to gain access!"
msgid "page.405.title"
msgstr "405: Method not allowed"
msgid "page.419.title"
msgstr "Authentication expired"
msgid "page.419.text"
msgstr "The provided CSRF token is invalid or has expired"
msgid "credits.credit"
msgstr ""
"The original engelsystem was written by "
@ -795,8 +816,7 @@ msgid "login.do"
msgstr "What can I do?"
msgid "login.jobs"
msgstr ""
"Please read about the jobs you can do to help us."
msgstr "Read about the jobs you can do to help us."
msgid "login.cookies"
msgstr "Please note: You have to activate cookies!"

View File

@ -2,7 +2,7 @@
{% import 'macros/base.twig' as m %}
{% import 'macros/form.twig' as f %}
{% block title %}{{ __(is_edit ? 'worklog.edit' : 'worklog.add') }}{% endblock %}
{% block title %}{{ is_edit ? __('worklog.edit') : __('worklog.add') }}{% endblock %}
{% block content %}
<div class="container">

View File

@ -1,9 +1,9 @@
{% extends "errors/default.twig" %}
{% import 'macros/base.twig' as m %}
{% block title %}{{ __("Forbidden") }}{% endblock %}
{% block title %}{{ __('page.403.title') }}{% endblock %}
{% block content_headline_text %}{{ __("You are not allowed to access this page") }}{% endblock %}
{% block content_headline_text %}{{ __('page.403.headline') }}{% endblock %}
{% block content_text %}
{% if is_guest() %}

View File

@ -1,13 +1,13 @@
{% extends "errors/default.twig" %}
{% block title %}{{ __("Page not found") }}{% endblock %}
{% block title %}{{ __('page.404.title') }}{% endblock %}
{% block content_container %}
<div class="row">
<div class="col-md-6 offset-md-3 col-lg-4 offset-lg-4 error-big">
<h2>
4<span class="pulse">:</span>{{ status|slice(1, 2) }}
<small class="text-muted">{{ __("No sleep found") }}</small>
<small class="text-muted">{{ __('page.404.not_found') }}</small>
</h2>
{% block content_text %}

View File

@ -1,5 +1,5 @@
{% extends "errors/default.twig" %}
{% block title %}{{ __("405: Method not allowed") }}{% endblock %}
{% block title %}{{ __("page.405.title") }}{% endblock %}
{% block content_headline_text %}{{ __("405: Method not allowed") }}{% endblock %}
{% block content_headline_text %}{{ __("page.405.title") }}{% endblock %}

View File

@ -1,7 +1,7 @@
{% extends "errors/default.twig" %}
{% block title %}{{ __("Authentication expired") }}{% endblock %}
{% block title %}{{ __('page.419.title') }}{% endblock %}
{% block content %}
<div class="alert alert-warning" role="alert">{{ __("The provided CSRF token is invalid or has expired") }}</div>
<div class="alert alert-warning" role="alert">{{ __('page.419.text') }}</div>
{% endblock %}

View File

@ -117,7 +117,7 @@
<div class="col-sm-6 text-center">
<h2>{{ __('login.do') }}</h2>
<p>{{ __('Please read about the jobs you can do to help us.') }}</p>
<p>{{ __('login.jobs') }}</p>
<a href="{{ url('/angeltypes/about') }}" class="btn btn-primary">
{{ __('angeltypes.about') }} &raquo;
</a>

View File

@ -60,7 +60,7 @@ class LegacyMiddleware implements MiddlewareInterface
$translator = $this->container->get('translator');
$page = 404;
$title = $translator->translate('Page not found');
$title = $translator->translate('page.404.title');
$content = $translator->translate('page.404.text');
}