summaryrefslogtreecommitdiffstats
path: root/templates/status
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-04-28 01:03:15 +0200
committerGitHub <noreply@github.com>2020-04-27 18:03:15 -0500
commit41cebeb8fa1ed6d03e0fc74d3724131d479d6964 (patch)
tree6c52272cbf9cb07807414733b315e42365b00e07 /templates/status
parent6a3de9e25fb02b3473662b7475611c4fefd7c88d (diff)
downloadgitea-41cebeb8fa1ed6d03e0fc74d3724131d479d6964.tar.gz
gitea-41cebeb8fa1ed6d03e0fc74d3724131d479d6964.zip
Make error pages translatable (#11163)
* make error pages translatable * dont translate ":" * link need Safe
Diffstat (limited to 'templates/status')
-rw-r--r--templates/status/404.tmpl2
-rw-r--r--templates/status/500.tmpl6
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl
index bb5ac1d5c6..bd739280d7 100644
--- a/templates/status/404.tmpl
+++ b/templates/status/404.tmpl
@@ -5,6 +5,6 @@
<div class="ui divider"></div>
<br>
<p>{{.i18n.Tr "error404" | Safe}}
- {{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}
+ {{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
</div>
{{template "base/footer" .}}
diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl
index 1dc7061d45..c66897822a 100644
--- a/templates/status/500.tmpl
+++ b/templates/status/500.tmpl
@@ -3,9 +3,9 @@
<p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p>
<div class="ui divider"></div>
<br>
- {{if .ErrorMsg}}<p>An error has occurred :</p>
+ {{if .ErrorMsg}}<p>{{.i18n.Tr "error.occurred"}}:</p>
<pre style="text-align: left">{{.ErrorMsg}}</pre>{{end}}
- {{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}
- {{if .IsAdmin}}<p>If you are sure this is Gitea bug, please search for issue on <a href="https://github.com/go-gitea/gitea/issues">GitHub</a> and open new issue if necessary.</p>{{end}}
+ {{if .ShowFooterVersion}}<p>{{.i18n.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}}
+ {{if .IsAdmin}}<p>{{.i18n.Tr "error.report_message" | Safe}}</p>{{end}}
</div>
{{template "base/footer" .}}