Skip to content

Commit 63628fd

Browse files
lunnysilverwind
andauthored
Fix bug for version update hint (#18701) (#18705)
* Fix bug for version update hint (#18701) * Add translation for zh-CN Co-authored-by: silverwind <[email protected]>
1 parent 2e317d3 commit 63628fd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,6 +2334,7 @@ first_page = First
23342334
last_page = Last
23352335
total = Total: %d
23362336

2337+
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.
23372338
dashboard.statistic = Summary
23382339
dashboard.operations = Maintenance Operations
23392340
dashboard.system_status = System Status

options/locale/locale_zh-CN.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,8 @@ last_used=上次使用在
673673
no_activity=没有最近活动
674674
can_read_info=读取
675675
can_write_info=写入
676-
key_state_desc=7 天内使用过该密钥
677-
token_state_desc=7 天内使用过该密钥
676+
key_state_desc=7 天内使用过该密钥
677+
token_state_desc=7 天内使用过该密钥
678678
principal_state_desc=7 天内使用过该规则
679679
show_openid=在个人信息上显示
680680
hide_openid=在个人信息上隐藏
@@ -855,7 +855,7 @@ watchers=关注者
855855
stargazers=称赞者
856856
forks=派生仓库
857857
pick_reaction=选择你的表情
858-
reactions_more=再加载 %d
858+
reactions_more=再加载 %d
859859
unit_disabled=站点管理员已禁用此仓库单元。
860860
language_other=其它
861861
adopt_search=输入用户名以搜索未被收录的仓库... (留空以查找全部)
@@ -2334,6 +2334,7 @@ first_page=首页
23342334
last_page=末页
23352335
total=总计:%d
23362336

2337+
dashboard.new_version_hint = Gitea %s 可以更新了,您正在运行 %s。请检查 <a target="_blank" rel="noreferrer" href="https://blog.gitea.io">博客</a> 查看更多详情。
23372338
dashboard.statistic=摘要
23382339
dashboard.operations=维护操作
23392340
dashboard.system_status=系统状态

templates/admin/dashboard.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{template "base/alert" .}}
66
{{if .NeedUpdate}}
77
<div class="ui negative message flash-error">
8-
<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>
8+
<p>{{.i18n.Tr "admin.dashboard.new_version_hint" (.RemoteVersion | Str2html) (AppVer | Str2html)}}</p>
99
</div>
1010
{{end}}
1111
<h4 class="ui top attached header">

0 commit comments

Comments
 (0)