diff --git a/resources/lang/en/errors.php b/resources/lang/en/errors.php new file mode 100644 index 00000000..6797450f --- /dev/null +++ b/resources/lang/en/errors.php @@ -0,0 +1,23 @@ + [ + 'title' => 'Unauthorized Access', + 'message' => + 'Well, this is embarrassing, you are not authorized to access or perform this function. '. + 'Click here to go back to the home page.', + ], + '404' => [ + 'title' => 'Page Not Found', + 'message' => + 'Well, this is embarrassing, the page you requested does not exist.'. + 'Click here to go back to the home page.', + ], + '503' => [ + 'title' => 'Internal Error', + 'message' => 'An Error Occured', + ], +]; diff --git a/resources/lang/it/errors.php b/resources/lang/it/errors.php new file mode 100644 index 00000000..82cb7642 --- /dev/null +++ b/resources/lang/it/errors.php @@ -0,0 +1,23 @@ + [ + 'title' => 'Non Autorizzato', + 'message' => + 'Beh, è imbarazzante, non sei autorizzato ad accedere o ad eseguire questa funzionalità. '. + 'Clicca qui per tornare alla home page.', + ], + '404' => [ + 'title' => 'Page Not Found', + 'message' => + 'Beh, è imbarazzante, la pagina che hai richiesto non esiste.'. + 'Clicca qui per tornare alla home page.', + ], + '503' => [ + 'title' => 'Internal Error', + 'message' => 'Torniamo subito.', + ], +]; diff --git a/resources/views/layouts/default/errors/401.blade.php b/resources/views/layouts/default/errors/401.blade.php index 6f4ff546..47998572 100644 --- a/resources/views/layouts/default/errors/401.blade.php +++ b/resources/views/layouts/default/errors/401.blade.php @@ -1,13 +1,11 @@ @extends('app') -@section('title', __trans('frontend.errors.401title')) +@section('title', __('errors.401.title')) @section('content') -
- @foreach(trans('frontend.errors.401message') as $line)
- {!! str_replace(':link', config('app.url'), $line).'
' !!}
- @endforeach
-
+ {!! str_replace(':link', config('app.url'), __('errors.401.message')).'
' !!}
+
- @foreach(trans('frontend.errors.404message') as $line)
- {!! str_replace(':link', config('app.url'), $line).'
' !!}
- @endforeach
- {{ $exception->getMessage() }}
-
+ {!! str_replace(':link', config('app.url'), __('errors.404.message')).'
' !!}
+ {{ $exception->getMessage() }}
+