working on i18n of errors
This commit is contained in:
parent
629dd20113
commit
a6dbd3998d
9
resources/lang/en/errors.yml
Normal file
9
resources/lang/en/errors.yml
Normal 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:'
|
@ -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.
|
||||
|
||||
|
9
resources/lang/zh-CN/errors.yml
Normal file
9
resources/lang/zh-CN/errors.yml
Normal file
@ -0,0 +1,9 @@
|
||||
details: 详细信息:
|
||||
error403: 你并没有权限查看此页面
|
||||
error404: 这里啥都没有哦
|
||||
error503: 网站维护中
|
||||
be-right-back: 马上回来
|
||||
error-occurred: 出现错误
|
||||
some-errors: 出现了一些错误:
|
||||
error-code: 错误码:
|
||||
file-location: 文件位置:
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user