From 2abef971dc2d63606f7be4036c47209352a962d4 Mon Sep 17 00:00:00 2001 From: Simon Pistache <105607989+SimonPistache@users.noreply.github.com> Date: Sun, 1 Dec 2024 03:14:56 +0100 Subject: fix(#32667): 🐛 Fixe a keystring misuse and refactor duplicates keystrings (#32668) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fixes a translation keystring misuse where the string 'open milestones' is used in place of 'closed milestones'. - De-duplicates the use of 'open milesones' and 'closed milestones' keystrings on the sidebar of an issue, reusing the ones on the issues filter and action bars. - Closes #32667 --------- Co-authored-by: wxiaoguang --- templates/repo/issue/filter_actions.tmpl | 2 +- templates/repo/issue/sidebar/milestone_list.tmpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/issue/filter_actions.tmpl b/templates/repo/issue/filter_actions.tmpl index 4cdad7a748..8e2410393d 100644 --- a/templates/repo/issue/filter_actions.tmpl +++ b/templates/repo/issue/filter_actions.tmpl @@ -58,7 +58,7 @@ {{end}} {{if .ClosedMilestones}}
-
{{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}
+
{{ctx.Locale.Tr "repo.issues.filter_milestone_closed"}}
{{range .ClosedMilestones}}
{{.Name}} diff --git a/templates/repo/issue/sidebar/milestone_list.tmpl b/templates/repo/issue/sidebar/milestone_list.tmpl index 2a7b6f6009..0e926f7b03 100644 --- a/templates/repo/issue/sidebar/milestone_list.tmpl +++ b/templates/repo/issue/sidebar/milestone_list.tmpl @@ -22,7 +22,7 @@
{{ctx.Locale.Tr "repo.issues.new.clear_milestone"}}