From 069a96ebe2beb629fe1b44617de97c179f916143 Mon Sep 17 00:00:00 2001 From: guillep2k <18600385+guillep2k@users.noreply.github.com> Date: Mon, 10 Feb 2020 16:23:35 -0300 Subject: [PATCH] Improve 404 error message (#10214) --- options/locale/locale_en-US.ini | 2 ++ templates/status/404.tmpl | 1 + 2 files changed, 3 insertions(+) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 2f7e0acb63..8cd76ad2be 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -79,6 +79,8 @@ write = Write preview = Preview loading = Loading… +error404 = The page you are trying to reach either does not exist or you are not authorized to view it. + [startpage] app_desc = A painless, self-hosted Git service install = Easy to install diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index f947602bf2..6992803113 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -4,6 +4,7 @@
{{.i18n.Tr "error404" | Safe}} {{if .ShowFooterVersion}}
Application Version: {{AppVer}}
{{end}} {{template "base/footer" .}}