Reformat error and auth translations
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'401' => [
|
||||||
|
'title' => 'Unauthorized Access',
|
||||||
|
'message' =>
|
||||||
|
'Well, this is embarrassing, you are not authorized to access or perform this function. '.
|
||||||
|
'Click <a href=":link">here</a> 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 <a href=":link">here</a> to go back to the home page.',
|
||||||
|
],
|
||||||
|
'503' => [
|
||||||
|
'title' => 'Internal Error',
|
||||||
|
'message' => 'An Error Occured',
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'401' => [
|
||||||
|
'title' => 'Non Autorizzato',
|
||||||
|
'message' =>
|
||||||
|
'Beh, è imbarazzante, non sei autorizzato ad accedere o ad eseguire questa funzionalità. '.
|
||||||
|
'Clicca <a href=":link">qui</a> per tornare alla home page.',
|
||||||
|
],
|
||||||
|
'404' => [
|
||||||
|
'title' => 'Page Not Found',
|
||||||
|
'message' =>
|
||||||
|
'Beh, è imbarazzante, la pagina che hai richiesto non esiste.'.
|
||||||
|
'Clicca <a href=":link">qui</a> per tornare alla home page.',
|
||||||
|
],
|
||||||
|
'503' => [
|
||||||
|
'title' => 'Internal Error',
|
||||||
|
'message' => 'Torniamo subito.',
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -1,13 +1,11 @@
|
|||||||
@extends('app')
|
@extends('app')
|
||||||
@section('title', __trans('frontend.errors.401title'))
|
@section('title', __('errors.401.title'))
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container registered-page">
|
<div class="container registered-page">
|
||||||
<h3>@lang('frontend.errors.401header')</h3>
|
<h3>@lang('errors.401.title')</h3>
|
||||||
<p>
|
<p>
|
||||||
@foreach(trans('frontend.errors.401message') as $line)
|
{!! str_replace(':link', config('app.url'), __('errors.401.message')).'<br />' !!}
|
||||||
{!! str_replace(':link', config('app.url'), $line).'<br />' !!}
|
|
||||||
@endforeach
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
@extends('app')
|
@extends('app')
|
||||||
@section('title', trans('frontend.errors.404title'))
|
@section('title', __('errors.404.title'))
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container registered-page">
|
<div class="container registered-page">
|
||||||
<h3>@lang('frontend.errors.404header')</h3>
|
<h3>@lang('errors.404.title')</h3>
|
||||||
<p>
|
<p>
|
||||||
@foreach(trans('frontend.errors.404message') as $line)
|
{!! str_replace(':link', config('app.url'), __('errors.404.message')).'<br />' !!}
|
||||||
{!! str_replace(':link', config('app.url'), $line).'<br />' !!}
|
|
||||||
@endforeach
|
|
||||||
{{ $exception->getMessage() }}
|
{{ $exception->getMessage() }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>@lang('frontend.errors.503message')</title>
|
<title>@lang('errors.503.title')</title>
|
||||||
|
|
||||||
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
|
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="title">@lang('frontend.errors.503message')</div>
|
<div class="title">@lang('errors.503.message')</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user