From c9761f7e916dd6ba1d8ca24f0f17f482dcfdd7e6 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Thu, 29 Jul 2021 16:20:28 +0800 Subject: [PATCH] fix issue-170 --- options/locale/locale_en-US.ini | 2 ++ options/locale/locale_zh-CN.ini | 2 ++ templates/status/404.tmpl | 2 +- templates/status/500.tmpl | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index b5ad101ef..e809a33e8 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -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 does not exist or you are not authorized to view it. [error] diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index 67fc9ef58..9747bc7dc 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -87,6 +87,8 @@ write=撰写 preview=预览 loading=正在加载... +error404_index = 您的访问受限! +error500_index = 抱歉!您指定的网页无法访问。 error404=您正尝试访问的页面 不存在您尚未被授权 查看该页面。 [error] diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index d14e88083..2fd17cbd8 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -5,7 +5,7 @@
-

您的访问受限!

+

{{.i18n.Tr "error404_index"}}

{{.i18n.Tr "error404" | Safe}}

diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 4af002d4c..e4ea06d3d 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -5,7 +5,7 @@
-

抱歉!您指定的网页无法访问。

+

{{.i18n.Tr "error500_index"}}

{{.i18n.Tr "error404" | Safe}}