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: [PATCH] =?UTF-8?q?fix(#32667):=20=F0=9F=90=9B=20Fixe=20a=20keystr?= =?UTF-8?q?ing=20misuse=20and=20refactor=20duplicates=20keystrings=20(#326?= =?UTF-8?q?68)?= 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 --- options/locale/locale_en-US.ini | 2 -- templates/repo/issue/filter_actions.tmpl | 2 +- templates/repo/issue/sidebar/milestone_list.tmpl | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index ffce4b7e2f..1dc0c3cb81 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1461,8 +1461,6 @@ issues.new.no_items = No items issues.new.milestone = Milestone issues.new.no_milestone = No Milestone issues.new.clear_milestone = Clear milestone -issues.new.open_milestone = Open Milestones -issues.new.closed_milestone = Closed Milestones issues.new.assignees = Assignees issues.new.clear_assignees = Clear assignees issues.new.no_assignees = No Assignees 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"}}