forked from gitea/gitea
1
0
Fork 0

Fix bug for version update hint (#18701) (#18705)

* Fix bug for version update hint (#18701)
* Add translation for zh-CN

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
Lunny Xiao 2022-02-11 02:35:24 +08:00 committed by GitHub
parent 2e317d3f6e
commit 63628fdf1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -2334,6 +2334,7 @@ first_page = First
last_page = Last last_page = Last
total = Total: %d total = Total: %d
dashboard.new_version_hint = Gitea %s is now available, you are running %s. Check the <a target="_blank" rel="noreferrer" href="https://blog.gitea.io">blog</a> for more details.
dashboard.statistic = Summary dashboard.statistic = Summary
dashboard.operations = Maintenance Operations dashboard.operations = Maintenance Operations
dashboard.system_status = System Status dashboard.system_status = System Status

View File

@ -2334,6 +2334,7 @@ first_page=首页
last_page=末页 last_page=末页
total=总计:%d total=总计:%d
dashboard.new_version_hint = Gitea %s 可以更新了,您正在运行 %s。请检查 <a target="_blank" rel="noreferrer" href="https://blog.gitea.io">博客</a> 查看更多详情。
dashboard.statistic=摘要 dashboard.statistic=摘要
dashboard.operations=维护操作 dashboard.operations=维护操作
dashboard.system_status=系统状态 dashboard.system_status=系统状态

View File

@ -5,7 +5,7 @@
{{template "base/alert" .}} {{template "base/alert" .}}
{{if .NeedUpdate}} {{if .NeedUpdate}}
<div class="ui negative message flash-error"> <div class="ui negative message flash-error">
<p>"Gitea {{.RemoteVersion | Str2html}} is now available, you are running {{.AppVer | Str2html}}. Check the <a href="https://blog.gitea.io">blog</a> for more details.</p> <p>{{.i18n.Tr "admin.dashboard.new_version_hint" (.RemoteVersion | Str2html) (AppVer | Str2html)}}</p>
</div> </div>
{{end}} {{end}}
<h4 class="ui top attached header"> <h4 class="ui top attached header">