From ae528d832133e43c7465717a4f7a442e84d0ea9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=99=BA=E8=B6=85?= <1012112796@qq.com> Date: Sat, 12 Sep 2020 15:29:50 +0800 Subject: [PATCH] Translate two small lables on commit statuse list (#12821) * Requested * Details Signed-off-by: a1012112796 <1012112796@qq.com> --- options/locale/locale_en-US.ini | 2 ++ templates/repo/pulls/status.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 2f5bd002d..4430c4880 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1243,6 +1243,8 @@ pulls.status_checks_success = All checks were successful pulls.status_checks_warning = Some checks reported warnings pulls.status_checks_failure = Some checks failed pulls.status_checks_error = Some checks reported errors +pulls.status_checks_requested = Required +pulls.status_checks_details = Details pulls.update_branch = Update branch pulls.update_branch_success = Branch update was successful pulls.update_not_allowed = You are not allowed to update branch diff --git a/templates/repo/pulls/status.tmpl b/templates/repo/pulls/status.tmpl index a15c10582..2847903a5 100644 --- a/templates/repo/pulls/status.tmpl +++ b/templates/repo/pulls/status.tmpl @@ -21,9 +21,9 @@ {{.Context}} {{.Description}}
{{if $.is_context_required}} - {{if (call $.is_context_required .Context)}}
Required
{{end}} + {{if (call $.is_context_required .Context)}}
{{$.i18n.Tr "repo.pulls.status_checks_requested"}}
{{end}} {{end}} - {{if .TargetURL}}Details{{end}} + {{if .TargetURL}}{{$.i18n.Tr "repo.pulls.status_checks_details"}}{{end}}
{{end}}