Skip to content

Commit

Permalink
🌐 Add translations for error pages (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrLevin authored Dec 28, 2023
1 parent a174134 commit baeb748
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 14 deletions.
8 changes: 7 additions & 1 deletion lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
8 changes: 7 additions & 1 deletion lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
4 changes: 2 additions & 2 deletions resources/views/errors/401.blade.php
Original file line number Diff line number Diff line change
@@ -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'))
4 changes: 2 additions & 2 deletions resources/views/errors/403.blade.php
Original file line number Diff line number Diff line change
@@ -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'))
4 changes: 2 additions & 2 deletions resources/views/errors/404.blade.php
Original file line number Diff line number Diff line change
@@ -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'))
4 changes: 2 additions & 2 deletions resources/views/errors/419.blade.php
Original file line number Diff line number Diff line change
@@ -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'))
4 changes: 2 additions & 2 deletions resources/views/errors/429.blade.php
Original file line number Diff line number Diff line change
@@ -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'))
4 changes: 2 additions & 2 deletions resources/views/errors/500.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, ''))

0 comments on commit baeb748

Please sign in to comment.