From 529bacb80bb9d7da3a6e4a7829475b6caa6ff285 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 10 Feb 2022 17:43:39 +0800 Subject: [PATCH 1/2] Fix bug for version update hint --- options/locale/locale_en-US.ini | 1 + templates/admin/dashboard.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 7b3671f90aea..4bdb0589b870 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2382,6 +2382,7 @@ first_page = First last_page = Last total = Total: %d +dashboard.new_version_hint = Gitea %s is now available, you are running %s. Check the blog for more details. dashboard.statistic = Summary dashboard.operations = Maintenance Operations dashboard.system_status = System Status diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 35f45bd3529c..d9e056973aee 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -5,7 +5,7 @@ {{template "base/alert" .}} {{if .NeedUpdate}}
-

"Gitea {{.RemoteVersion | Str2html}} is now available, you are running {{.AppVer | Str2html}}. Check the blog for more details.

+

{{.i18n.Tr "admin.dashboard.new_version_hint" (.RemoteVersion | Str2html) (AppVer | Str2html)}}

{{end}}

From 2b4b6d1e6e7ad3a91c69598043c7e85b9684d300 Mon Sep 17 00:00:00 2001 From: zeripath Date: Thu, 10 Feb 2022 10:34:38 +0000 Subject: [PATCH 2/2] Update options/locale/locale_en-US.ini Co-authored-by: silverwind --- options/locale/locale_en-US.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 4bdb0589b870..1c4313247871 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2382,7 +2382,7 @@ first_page = First last_page = Last total = Total: %d -dashboard.new_version_hint = Gitea %s is now available, you are running %s. Check the blog for more details. +dashboard.new_version_hint = Gitea %s is now available, you are running %s. Check the blog for more details. dashboard.statistic = Summary dashboard.operations = Maintenance Operations dashboard.system_status = System Status