Skip to content

Commit 069a96e

Browse files
authored
Improve 404 error message (#10214)
1 parent b5418a6 commit 069a96e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ write = Write
7979
preview = Preview
8080
loading = Loading…
8181

82+
error404 = The page you are trying to reach either <strong>does not exist</strong> or <strong>you are not authorized</strong> to view it.
83+
8284
[startpage]
8385
app_desc = A painless, self-hosted Git service
8486
install = Easy to install

templates/status/404.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<p style="margin-top: 100px"><img src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p>
55
<div class="ui divider"></div>
66
<br>
7+
<p>{{.i18n.Tr "error404" | Safe}}
78
{{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}
89
</div>
910
{{template "base/footer" .}}

0 commit comments

Comments
 (0)