diff --git a/resources/lang/en/frontend.php b/resources/lang/en/frontend.php index 90dde23f..da71fb10 100644 --- a/resources/lang/en/frontend.php +++ b/resources/lang/en/frontend.php @@ -87,6 +87,33 @@ return [ 'nodownloads' => 'There are no downloads!', ], + 'emails' => [ + 'whoops' => 'Whoops', + 'hello' => 'Hello', + 'regards' => 'Regards', + 'buttontroubles' => [ + 'If you’re having trouble clicking the ":actiontext" button,', + 'copy and paste the URL below into your web browser:', + ], + 'allrightsreserved' => 'All Rights Reserved', + ], + + 'errors' => [ + '401title' => 'Not Authorized', + '401header' => 'Unauthorized Access', + '401message' => [ + 'Well, this is embarrassing, you are not authorized to access or perform this function.', + 'Click here to go back to the home page.', + ], + '404title' => 'Not Found', + '404header' => 'Page Not Found', + '404message' => [ + 'Well, this is embarrassing, the page you requested does not exist.', + 'Click here to go back to the home page.', + ], + '503message' => 'Be right back.', + ], + 'flights' => [ 'mybid' => 'My Bid|My Bids', 'search' => 'Search', diff --git a/resources/lang/it/frontend.php b/resources/lang/it/frontend.php index b56de95e..b0b77d11 100644 --- a/resources/lang/it/frontend.php +++ b/resources/lang/it/frontend.php @@ -83,6 +83,33 @@ return [ 'recentreports' => 'Rapporti Recenti', ], + 'emails' => [ + 'whoops' => 'Ops', + 'hello' => 'Ciao', + 'regards' => 'Saluti', + 'buttontroubles' => [ + 'Se hai problemi a cliccare il bottone ":actiontext",', + 'copia e incolla l\'URL qui sotto nel tuo browser:', + ], + 'allrightsreserved' => 'Tutti i Diritti Riservati', + ], + + 'errors' => [ + '401title' => 'Non Autorizzato', + '401header' => 'Accesso Non Autorizzato', + '401message' => [ + 'Beh, è imbarazzante, non sei autorizzato ad accedere o ad eseguire questa funzionalità.', + 'Clicca qui per tornare alla home page.', + ], + '404title' => 'Not Found', + '404header' => 'Page Not Found', + '404message' => [ + 'Beh, è imbarazzante, la pagina che hai richiesto non esiste.', + 'Clicca qui per tornare alla home page.', + ], + '503message' => 'Torniamo subito.', + ], + 'downloads' => [ 'nodownloads' => 'Non ci sono downloads!', ], diff --git a/resources/views/layouts/default/errors/401.blade.php b/resources/views/layouts/default/errors/401.blade.php index 4a42d710..6f4ff546 100644 --- a/resources/views/layouts/default/errors/401.blade.php +++ b/resources/views/layouts/default/errors/401.blade.php @@ -1,12 +1,13 @@ @extends('app') -@section('title', 'not authorized') +@section('title', __trans('frontend.errors.401title')) @section('content')
- Well, this is embarrassing, you are not authorized to access or perform this function.
- Click here to go back to the home page.
+ @foreach(trans('frontend.errors.401message') as $line)
+ {!! str_replace(':link', config('app.url'), $line).'
' !!}
+ @endforeach
- Well, this is embarrassing, the page you requested does not exist.
- Click here to go back to the home page.
+ @foreach(trans('frontend.errors.404message') as $line)
+ {!! str_replace(':link', config('app.url'), $line).'
' !!}
+ @endforeach
{{ $exception->getMessage() }}
- Regards,
{{ config('app.name') }}
+ @lang('frontend.emails.regards'),
{{ config('app.name') }}
- If you’re having trouble clicking the "{{ $actionText }}" button, - copy and paste the URL below into your web browser: + @foreach(trans('frontend.emails.buttontroubles' as $line) + {{ str_replace(':actiontext', $actionText, $line) }} + @endforeach
@@ -173,7 +174,7 @@ $style = [
© {{ date('Y') }} {{ config('app.name') }}. - All rights reserved. + @lang(frontend.emails.allrightsreserved')