From 6092bbac4ded884bb8801e0c439804217d10d1f1 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 11 Dec 2024 10:32:10 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixe=20a=20keystring=20misuse=20?= =?UTF-8?q?and=20refactor=20duplicates=20keystrings=20(#32668)=20(#32792)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport #32668 - 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: Simon Pistache <105607989+SimonPistache@users.noreply.github.com> Co-authored-by: wxiaoguang --- options/locale/locale_en-US.ini | 2 -- templates/repo/issue/filter_actions.tmpl | 2 +- templates/repo/issue/milestone/select_menu.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 21dee015f5..a9608144a3 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -1434,8 +1434,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 56ae7dc411..08838567bb 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/milestone/select_menu.tmpl b/templates/repo/issue/milestone/select_menu.tmpl index 9b0492ce52..6ddc4590d8 100644 --- a/templates/repo/issue/milestone/select_menu.tmpl +++ b/templates/repo/issue/milestone/select_menu.tmpl @@ -14,7 +14,7 @@ {{if .OpenMilestones}}
- {{ctx.Locale.Tr "repo.issues.new.open_milestone"}} + {{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}
{{range .OpenMilestones}} @@ -26,7 +26,7 @@ {{if .ClosedMilestones}}
- {{ctx.Locale.Tr "repo.issues.new.closed_milestone"}} + {{ctx.Locale.Tr "repo.issues.filter_milestone_closed"}}
{{range .ClosedMilestones}}