From baeb74867ad578f64487e51a4961e0dc21bd1d60 Mon Sep 17 00:00:00 2001 From: Levin Herr Date: Thu, 28 Dec 2023 09:25:39 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Add=20translations=20for=20error?= =?UTF-8?q?=20pages=20(#2244)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/de.json | 8 +++++++- lang/en.json | 8 +++++++- resources/views/errors/401.blade.php | 4 ++-- resources/views/errors/403.blade.php | 4 ++-- resources/views/errors/404.blade.php | 4 ++-- resources/views/errors/419.blade.php | 4 ++-- resources/views/errors/429.blade.php | 4 ++-- resources/views/errors/500.blade.php | 4 ++-- 8 files changed, 26 insertions(+), 14 deletions(-) diff --git a/lang/de.json b/lang/de.json index 717a83c61..387cdce1f 100644 --- a/lang/de.json +++ b/lang/de.json @@ -745,5 +745,11 @@ "mail.account_deletion_notification_two_weeks_before.subject": "Dein Träwelling Account wird in zwei Wochen gelöscht", "mail.account_deletion_notification_two_weeks_before.body1": "dein Träwelling Account scheint seit längerer Zeit nicht mehr aktiv von dir genutzt zu werden.", "mail.account_deletion_notification_two_weeks_before.body2": "Aus Gründen der Datensparsamkeit werden Accounts, die länger als 12 Monate nicht genutzt werden, automatisch gelöscht.", - "mail.account_deletion_notification_two_weeks_before.body3": "Wenn du deinen Account behalten möchtest, logge dich bitte innerhalb der nächsten 14 Tage ein." + "mail.account_deletion_notification_two_weeks_before.body3": "Wenn du deinen Account behalten möchtest, logge dich bitte innerhalb der nächsten 14 Tage ein.", + "error.401": "Nicht autorisiert", + "error.403": "Verboten", + "error.404": "Nicht gefunden", + "error.419": "Zeitüberschreitung", + "error.429": "Zu viele Anfragen", + "error.500": "Interner Serverfehler" } diff --git a/lang/en.json b/lang/en.json index 2de2ac141..07a58058c 100644 --- a/lang/en.json +++ b/lang/en.json @@ -745,5 +745,11 @@ "mail.signature": "Your Träwelling Team", "mail.account_deletion_notification_two_weeks_before.body1": "your Träwelling account seems to be inactive for a long time.", "mail.account_deletion_notification_two_weeks_before.body2": "For reasons of data economy, accounts that are not used for more than 12 months will be automatically deleted.", - "mail.account_deletion_notification_two_weeks_before.body3": "If you would like to keep your account, please log in within the next 14 days." + "mail.account_deletion_notification_two_weeks_before.body3": "If you would like to keep your account, please log in within the next 14 days.", + "error.401": "Unauthorized", + "error.403": "Forbidden", + "error.404": "Not Found", + "error.419": "Page Expired", + "error.429": "Too Many Requests", + "error.500": "Server Error" } diff --git a/resources/views/errors/401.blade.php b/resources/views/errors/401.blade.php index ed72fbec7..16b5165bf 100644 --- a/resources/views/errors/401.blade.php +++ b/resources/views/errors/401.blade.php @@ -1,6 +1,6 @@ @extends('layouts.illustrated-layout') @section('image', asset('images/covers/traffic_lights.jpg')) -@section('title', __('Unauthorized')) +@section('title', __('error.401')) @section('code', '401') -@section('message', __('Unauthorized')) +@section('message', __('error.401')) diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php index 7efa6c974..caaba79a1 100644 --- a/resources/views/errors/403.blade.php +++ b/resources/views/errors/403.blade.php @@ -1,6 +1,6 @@ @extends('layouts.illustrated-layout') @section('image', asset('images/covers/traffic_lights.jpg')) -@section('title', __('Forbidden')) +@section('title', __('error.403')) @section('code', '403') -@section('message', __($exception->getMessage() ?: 'Forbidden')) +@section('message', __($exception->getMessage() ?: 'error.403')) diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index 394c25396..49d94287b 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -1,6 +1,6 @@ @extends('layouts.illustrated-layout') @section('image', asset('images/covers/abandoned.jpg')) -@section('title', __('Not Found')) +@section('title', __('error.404')) @section('code', '404') -@section('message', __('Not Found')) +@section('message', __('error.404')) diff --git a/resources/views/errors/419.blade.php b/resources/views/errors/419.blade.php index 4fdaa9460..7e6ce7d18 100644 --- a/resources/views/errors/419.blade.php +++ b/resources/views/errors/419.blade.php @@ -1,6 +1,6 @@ @extends('layouts.illustrated-layout') @section('image', asset('images/covers/time.jpg')) -@section('title', __('Page Expired')) +@section('title', __('error.419')) @section('code', '419') -@section('message', __('Page Expired')) +@section('message', __('error.419')) diff --git a/resources/views/errors/429.blade.php b/resources/views/errors/429.blade.php index d66f0e7c4..deb54d12b 100644 --- a/resources/views/errors/429.blade.php +++ b/resources/views/errors/429.blade.php @@ -1,6 +1,6 @@ @extends('layouts.illustrated-layout') -@section('title', __('Too Many Requests')) +@section('title', __('error.429')) @section('code', '429') -@section('message', __('Too Many Requests')) +@section('message', __('error.429')) diff --git a/resources/views/errors/500.blade.php b/resources/views/errors/500.blade.php index 100891624..119fc94bd 100644 --- a/resources/views/errors/500.blade.php +++ b/resources/views/errors/500.blade.php @@ -6,7 +6,7 @@ @endphp @section('image', asset('images/covers/derailment.jpg')) -@section('title', __('Server Error')) +@section('title', __('error.500')) @section('code', '500') -@section('message', __('Server Error')) +@section('message', __('error.500')) @section('reference', errorMessage($exception, ''))