Browse Source

fix issue-170

tags/v1.21.12.1
zhoupzh 4 years ago
parent
commit
c9761f7e91
4 changed files with 6 additions and 2 deletions
  1. +2
    -0
      options/locale/locale_en-US.ini
  2. +2
    -0
      options/locale/locale_zh-CN.ini
  3. +1
    -1
      templates/status/404.tmpl
  4. +1
    -1
      templates/status/500.tmpl

+ 2
- 0
options/locale/locale_en-US.ini View File

@@ -87,6 +87,8 @@ write = Write
preview = Preview
loading = Loading…

error404_index = Request forbidden by administrative rules
error500_index = Internal Server Error
error404 = The page you are trying to reach either <strong>does not exist</strong> or <strong>you are not authorized</strong> to view it.

[error]


+ 2
- 0
options/locale/locale_zh-CN.ini View File

@@ -87,6 +87,8 @@ write=撰写
preview=预览
loading=正在加载...

error404_index = 您的访问受限!
error500_index = 抱歉!您指定的网页无法访问。
error404=您正尝试访问的页面 <strong>不存在</strong> 或 <strong>您尚未被授权</strong> 查看该页面。

[error]


+ 1
- 1
templates/status/404.tmpl View File

@@ -5,7 +5,7 @@
<div class="ui basic very padded segment">
<img class="ui centered medium image" src="{{StaticUrlPrefix}}/img/icon-403@2x.png">
<h2>您的访问受限!</h2>
<h2>{{.i18n.Tr "error404_index"}}</h2>
<p>{{.i18n.Tr "error404" | Safe}}</p>
</div>
</div>


+ 1
- 1
templates/status/500.tmpl View File

@@ -5,7 +5,7 @@
<div class="ui basic very padded segment">
<img class="ui centered medium image" src="{{StaticUrlPrefix}}/img/icon-500@2x.png">
<h2>抱歉!您指定的网页无法访问。</h2>
<h2>{{.i18n.Tr "error500_index"}}</h2>
<p>{{.i18n.Tr "error404" | Safe}}</p>
</div>
</div>


Loading…
Cancel
Save