working on i18n of errors

This commit is contained in:
g-plane 2016-09-18 19:45:01 +08:00
parent 629dd20113
commit a6dbd3998d
8 changed files with 34 additions and 16 deletions

View File

@ -0,0 +1,9 @@
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:'

View File

@ -6,7 +6,7 @@ index:
uploader: User ( :name ) uploaded
newest-uploaded: Newestly uploaded
most-likes: Most likes
no-result: No result.
no-result: 'No result.'
item:
remove-from-closet: Remove from closet.
@ -23,7 +23,7 @@ master:
search:
title: Result
no-given-keywords: No keywords
no-given-keywords: 'No keywords'
no-result: No result.
show:
@ -40,10 +40,10 @@ show:
upload-at: Date of upload
delete-texture: Delete texture
change-privacy: Change privacy
message: Textures setted to be private or deleted will be removed from all collectors'' closets.
message: 'Textures setted to be private or deleted will be removed from all collectors'' closets.'
set-private: Be private
set-public: Be public
set-message: You can make this texture private or delete it, which will remove it from all collectors'' closets.
set-message: 'You can make this texture private or delete it, which will remove it from all collectors'' closets.'
comment: Comments
no-comment: We have not enabled comment service.

View File

@ -0,0 +1,9 @@
details: 详细信息:
error403: 你并没有权限查看此页面
error404: 这里啥都没有哦
error503: 网站维护中
be-right-back: 马上回来
error-occurred: 出现错误
some-errors: 出现了一些错误:
error-code: 错误码:
file-location: 文件位置:

View File

@ -5,5 +5,5 @@
@section('content')
<h1>403 Forbidden</h1>
<p>详细信息:{{ $exception->getMessage() ?: "你并没有权限查看此页面" }}</p>
<p>{{ trans('errors.details').$exception->getMessage() ?: trans('error.error403') }}</p>
@endsection

View File

@ -5,5 +5,5 @@
@section('content')
<h1>404 Not Found</h1>
<p>详细信息:{{ $exception->getMessage() ?: "这里啥都没有哦" }}</p>
<p>{{ trans('errors.details').$exception->getMessage() ?: trans('errors.error404') }}</p>
@endsection

View File

@ -3,7 +3,7 @@
@section('title', '503 Service Unavailable')
@section('content')
<h1>Be right back.</h1>
<h1>{{ trans('errors.be-right-back') }}</h1>
<p>详细信息:{{ $exception->getMessage() ?: "Application is now in maintenance mode." }}</p>
<p>{{ trans('errors.details').$exception->getMessage() ?: trans('errors.error503') }}</p>
@endsection

View File

@ -1,10 +1,10 @@
@extends('errors.general')
@section('title', '出现错误')
@section('title', trans('errors.error-occurred'))
@section('content')
<h1>出现了一些错误:</h1>
<h1>{{ trans('errors.some-errors') }}</h1>
<p>错误码: {{ $code }}</p>
<p>详细信息:{!! $message !!}</p>
<p>{{ trans('error.error-code').$code }}</p>
<p>{!! trans('error.details').$message !!}</p>
@endsection

View File

@ -1,12 +1,12 @@
@extends('errors.general')
@section('title', '出现错误')
@section('title', trans('errors.error-occurred'))
@section('content')
<h1>{{ $level }}: 出现了一些错误</h1>
<h1>{{ $level.': '.trans('errors.some-errors') }}</h1>
<p>详细信息:{{ $message }}</p>
<p>{{ trans('errors.details').$message }}</p>
<p>文件位置:<b>{{ $file }}: {{ $line }}</b></p>
<p>{{ trans('errors.file-location') }}<b>{{ $file }}: {{ $line }}</b></p>
@endsection