enhance translations of error pages
This commit is contained in:
parent
65b0109d39
commit
4ee1d0a78a
@ -1,9 +1,13 @@
|
||||
details: 'Details:'
|
||||
error403: You cannot view this page without authority.
|
||||
error404: Nothing here.
|
||||
error503: Application is now in maintenance mode.
|
||||
be-right-back: Be right back.
|
||||
error-occurred: Error occurred.
|
||||
some-errors: 'Some errors occurred:'
|
||||
error-code: 'Error code:'
|
||||
file-location: 'File location:'
|
||||
http:
|
||||
msg-403: You have no permission to access this page.
|
||||
msg-404: Nothing here.
|
||||
msg-503: The application is now in maintenance mode.
|
||||
|
||||
general:
|
||||
title: Error occurred
|
||||
|
||||
exception:
|
||||
title: Some errors occurred
|
||||
code: 'Error code: :code'
|
||||
message: 'Details: :msg'
|
||||
location: 'File location: :location'
|
||||
|
@ -1,9 +1,13 @@
|
||||
details: 详细信息:
|
||||
error403: 你并没有权限查看此页面
|
||||
error404: 这里啥都没有哦
|
||||
error503: 网站维护中
|
||||
be-right-back: 马上回来
|
||||
error-occurred: 出现错误
|
||||
some-errors: 出现了一些错误:
|
||||
error-code: 错误码:
|
||||
file-location: 文件位置:
|
||||
http:
|
||||
msg-403: 你并没有权限查看此页面
|
||||
msg-404: 这里啥都没有哦
|
||||
msg-503: 网站维护中
|
||||
|
||||
general:
|
||||
title: 出现错误
|
||||
|
||||
exception:
|
||||
title: 出现了一些错误
|
||||
code: 错误码::code
|
||||
message: 详细信息::msg
|
||||
location: 文件位置::location
|
||||
|
@ -5,5 +5,5 @@
|
||||
@section('content')
|
||||
<h1>403 Forbidden</h1>
|
||||
|
||||
<p>{{ trans('errors.details').$exception->getMessage() ?: trans('error.error403') }}</p>
|
||||
<p>{{ trans('errors.exception.message', ['msg' => $exception->getMessage() ?: trans('errors.http.msg-403')]) }}</p>
|
||||
@endsection
|
||||
|
@ -3,7 +3,8 @@
|
||||
@section('title', '404 Not Found')
|
||||
|
||||
@section('content')
|
||||
|
||||
<h1>404 Not Found</h1>
|
||||
|
||||
<p>{{ trans('errors.details').$exception->getMessage() ?: trans('errors.error404') }}</p>
|
||||
<p>{{ trans('errors.exception.message', ['msg' => $exception->getMessage() ?: trans('errors.http.msg-404')]) }}</p>
|
||||
@endsection
|
||||
|
@ -3,7 +3,7 @@
|
||||
@section('title', '503 Service Unavailable')
|
||||
|
||||
@section('content')
|
||||
<h1>{{ trans('errors.be-right-back') }}</h1>
|
||||
<h1>Be right back.</h1>
|
||||
|
||||
<p>{{ trans('errors.details').$exception->getMessage() ?: trans('errors.error503') }}</p>
|
||||
<p>{{ trans('errors.exception.message', ['msg' => $exception->getMessage() ?: trans('errors.http.msg-503')]) }}</p>
|
||||
@endsection
|
||||
|
@ -1,10 +1,10 @@
|
||||
@extends('errors.general')
|
||||
|
||||
@section('title', trans('errors.error-occurred'))
|
||||
@section('title', trans('errors.general.title'))
|
||||
|
||||
@section('content')
|
||||
<h1>{{ trans('errors.some-errors') }}</h1>
|
||||
<h1>{{ trans('errors.error.title') }}</h1>
|
||||
|
||||
<p>{{ trans('error.error-code').$code }}</p>
|
||||
<p>{!! trans('error.details').$message !!}</p>
|
||||
<p>{{ trans('error.exception.code', ['code' => $code]) }}</p>
|
||||
<p>{!! trans('error.exception.message', ['message' => $message]) !!}</p>
|
||||
@endsection
|
||||
|
@ -1,12 +1,12 @@
|
||||
@extends('errors.general')
|
||||
|
||||
@section('title', trans('errors.error-occurred'))
|
||||
@section('title', trans('errors.general.title'))
|
||||
|
||||
@section('content')
|
||||
<h1>{{ $level.': '.trans('errors.some-errors') }}</h1>
|
||||
<h1>{{ $level.': '.trans('errors.exception.title') }}</h1>
|
||||
|
||||
<p>{{ trans('errors.details').$message }}</p>
|
||||
<p>{{ trans('errors.exception.message', ['msg' => $message]) }}</p>
|
||||
|
||||
<p>{{ trans('errors.file-location') }}<b>{{ $file }}: {{ $line }}</b></p>
|
||||
<p>{!! trans('errors.exception.location', ['location' => "<b>$file: $line</b>"]) !!}</p>
|
||||
|
||||
@endsection
|
||||
|
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="robots" content="noindex,nofollow" />
|
||||
<title>@yield('title') - Blessing Skin Server</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ url('assets/css/style.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ assets('css/style.css') }}">
|
||||
</head>
|
||||
|
||||
<body class="container">
|
||||
|
Loading…
Reference in New Issue
Block a user