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 />' !!}
|
</p>
|
||||||
@endforeach
|
</div>
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
@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 />' !!}
|
{{ $exception->getMessage() }}
|
||||||
@endforeach
|
</p>
|
||||||
{{ $exception->getMessage() }}
|
</div>
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -1,47 +1,47 @@
|
|||||||
<!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">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
html, body {
|
html, body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #B0BEC5;
|
color: #B0BEC5;
|
||||||
display: table;
|
display: table;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
font-family: 'Lato', sans-serif;
|
font-family: 'Lato', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 72px;
|
font-size: 72px;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<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>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user