From 93bd4351bfb4a2f5f37ecb80d50496d044240e00 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 25 Sep 2023 20:42:40 +0800 Subject: Fix more "locale" usages (#27259) --- templates/admin/auth/list.tmpl | 2 +- templates/admin/cron.tmpl | 2 +- templates/admin/emails/list.tmpl | 2 +- templates/admin/notice.tmpl | 2 +- templates/admin/org/list.tmpl | 2 +- templates/admin/packages/list.tmpl | 2 +- templates/admin/repo/list.tmpl | 2 +- templates/admin/stacktrace-row.tmpl | 2 +- templates/admin/user/list.tmpl | 2 +- templates/base/footer_content.tmpl | 4 ++-- templates/base/head_navbar.tmpl | 6 ++--- templates/code/searchform.tmpl | 4 ++-- templates/devtest/gitea-ui.tmpl | 28 +++++++++++----------- templates/devtest/tmplerr-sub.tmpl | 2 +- templates/explore/repo_list.tmpl | 2 +- templates/explore/repo_search.tmpl | 2 +- templates/home.tmpl | 2 +- templates/install.tmpl | 24 +++++++++---------- templates/org/settings/options.tmpl | 2 +- templates/org/team/new.tmpl | 2 +- templates/org/team/repositories.tmpl | 4 ++-- templates/package/shared/cleanup_rules/edit.tmpl | 2 +- templates/package/shared/cleanup_rules/list.tmpl | 2 +- templates/package/shared/list.tmpl | 2 +- templates/package/shared/versionlist.tmpl | 2 +- templates/package/view.tmpl | 4 ++-- templates/projects/list.tmpl | 8 +++---- templates/repo/actions/list.tmpl | 2 +- templates/repo/actions/runs_list.tmpl | 4 ++-- templates/repo/activity.tmpl | 12 +++++----- templates/repo/branch/list.tmpl | 8 +++---- templates/repo/clone_buttons.tmpl | 2 +- .../repo/code/recently_pushed_new_branches.tmpl | 2 +- templates/repo/commit_page.tmpl | 12 +++++----- templates/repo/commits_list.tmpl | 4 ++-- templates/repo/commits_table.tmpl | 2 +- templates/repo/diff/blob_excerpt.tmpl | 6 ++--- templates/repo/diff/box.tmpl | 6 ++--- templates/repo/diff/comments.tmpl | 2 +- templates/repo/diff/compare.tmpl | 4 ++-- templates/repo/diff/section_split.tmpl | 8 +++---- templates/repo/diff/section_unified.tmpl | 2 +- templates/repo/diff/whitespace_dropdown.tmpl | 2 +- templates/repo/editor/cherry_pick.tmpl | 2 +- templates/repo/editor/commit_form.tmpl | 6 ++--- templates/repo/editor/edit.tmpl | 4 ++-- templates/repo/editor/patch.tmpl | 2 +- templates/repo/editor/upload.tmpl | 2 +- templates/repo/empty.tmpl | 2 +- templates/repo/graph.tmpl | 6 ++--- templates/repo/home.tmpl | 4 ++-- templates/repo/issue/milestone_issues.tmpl | 2 +- templates/repo/issue/milestones.tmpl | 12 +++++----- templates/repo/issue/new_form.tmpl | 2 +- templates/repo/issue/openclose.tmpl | 4 ++-- templates/repo/issue/view_content.tmpl | 6 ++--- templates/repo/issue/view_content/comments.tmpl | 8 +++---- templates/repo/issue/view_content/pull.tmpl | 2 +- templates/repo/issue/view_content/sidebar.tmpl | 6 ++--- templates/repo/issue/view_title.tmpl | 6 ++--- templates/repo/migrate/codebase.tmpl | 2 +- templates/repo/migrate/git.tmpl | 2 +- templates/repo/migrate/gitbucket.tmpl | 2 +- templates/repo/migrate/gitea.tmpl | 2 +- templates/repo/migrate/gitlab.tmpl | 2 +- templates/repo/migrate/gogs.tmpl | 2 +- templates/repo/migrate/onedev.tmpl | 2 +- templates/repo/migrate/options.tmpl | 2 +- templates/repo/release/list.tmpl | 6 ++--- templates/repo/release/new.tmpl | 10 ++++---- templates/repo/release_tag_header.tmpl | 4 ++-- templates/repo/search.tmpl | 4 ++-- templates/repo/settings/collaboration.tmpl | 4 ++-- templates/repo/settings/deploy_keys.tmpl | 2 +- templates/repo/settings/lfs.tmpl | 4 ++-- templates/repo/settings/lfs_file_find.tmpl | 2 +- templates/repo/settings/lfs_locks.tmpl | 4 ++-- templates/repo/settings/lfs_pointers.tmpl | 2 +- templates/repo/settings/options.tmpl | 4 ++-- templates/repo/settings/webhook/dingtalk.tmpl | 2 +- templates/repo/settings/webhook/discord.tmpl | 2 +- templates/repo/settings/webhook/feishu.tmpl | 4 ++-- templates/repo/settings/webhook/gitea.tmpl | 2 +- templates/repo/settings/webhook/gogs.tmpl | 2 +- templates/repo/settings/webhook/history.tmpl | 2 +- templates/repo/settings/webhook/matrix.tmpl | 2 +- templates/repo/settings/webhook/msteams.tmpl | 2 +- templates/repo/settings/webhook/packagist.tmpl | 2 +- templates/repo/settings/webhook/slack.tmpl | 2 +- templates/repo/settings/webhook/telegram.tmpl | 2 +- templates/repo/settings/webhook/wechatwork.tmpl | 2 +- templates/repo/sub_menu.tmpl | 8 +++---- templates/repo/tag/list.tmpl | 2 +- templates/repo/view_file.tmpl | 2 +- templates/repo/view_list.tmpl | 4 ++-- templates/repo/wiki/new.tmpl | 4 ++-- templates/repo/wiki/pages.tmpl | 2 +- templates/repo/wiki/revision.tmpl | 2 +- templates/repo/wiki/view.tmpl | 2 +- templates/shared/actions/runner_edit.tmpl | 10 ++++---- templates/shared/actions/runner_list.tmpl | 6 ++--- templates/shared/issuelist.tmpl | 2 +- templates/shared/searchbottom.tmpl | 2 +- templates/shared/user/profile_big_avatar.tmpl | 2 +- templates/user/auth/grant.tmpl | 2 +- templates/user/dashboard/feeds.tmpl | 2 +- templates/user/dashboard/issues.tmpl | 4 ++-- templates/user/dashboard/milestones.tmpl | 12 +++++----- templates/user/heatmap.tmpl | 2 +- templates/user/notification/notification_div.tmpl | 5 ++-- templates/user/settings/applications.tmpl | 2 +- templates/user/settings/keys_principal.tmpl | 2 +- templates/user/settings/keys_ssh.tmpl | 2 +- templates/user/settings/profile.tmpl | 4 ++-- templates/user/settings/security/webauthn.tmpl | 2 +- 115 files changed, 224 insertions(+), 225 deletions(-) (limited to 'templates') diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index fd9f69aec7..6483ec800c 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -1,7 +1,7 @@ {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}}

- {{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{.locale.Tr "admin.total" .Total}}) + {{ctx.Locale.Tr "admin.auths.auth_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}}) diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl index 1886b48d0d..af30cc06e1 100644 --- a/templates/admin/cron.tmpl +++ b/templates/admin/cron.tmpl @@ -26,7 +26,7 @@ {{DateTime "full" .Next}} {{if gt .Prev.Year 1}}{{DateTime "full" .Prev}}{{else}}-{{end}} {{.ExecTimes}} - {{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}} + {{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}} {{end}} diff --git a/templates/admin/emails/list.tmpl b/templates/admin/emails/list.tmpl index 89ea849da9..84afc0585f 100644 --- a/templates/admin/emails/list.tmpl +++ b/templates/admin/emails/list.tmpl @@ -1,7 +1,7 @@ {{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}

- {{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{.locale.Tr "admin.total" .Total}}) + {{ctx.Locale.Tr "admin.emails.email_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})