loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Improve translation of milestone filters (#26569)

https://github.com/go-gitea/gitea/issues/26567#issue-1855312074
> The terms `closest` and `furthest` don't describe the actual sorting
behavior as these two are semantically relative to the current date.
> Could we switch to `earliest` and `latest` instead?

close #26567

---------

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: Giteabot <teabot@gitea.io>

authored by

CaiCandong
yp05327
Giteabot
and committed by
GitHub
5bd63f83 16dee4f1

+4 -4
+2 -2
options/locale/locale_en-US.ini
··· 1820 1820 milestones.deletion = Delete Milestone 1821 1821 milestones.deletion_desc = Deleting a milestone removes it from all related issues. Continue? 1822 1822 milestones.deletion_success = The milestone has been deleted. 1823 - milestones.filter_sort.closest_due_date = Closest due date 1824 - milestones.filter_sort.furthest_due_date = Furthest due date 1823 + milestones.filter_sort.earliest_due_data = Earliest due date 1824 + milestones.filter_sort.latest_due_date = Latest due date 1825 1825 milestones.filter_sort.least_complete = Least complete 1826 1826 milestones.filter_sort.most_complete = Most complete 1827 1827 milestones.filter_sort.most_issues = Most issues
+2 -2
templates/repo/issue/milestones.tmpl
··· 42 42 {{svg "octicon-triangle-down" 14 "dropdown icon"}} 43 43 </span> 44 44 <div class="menu"> 45 - <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active {{end}}item" href="{{$.Link}}?sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.closest_due_date"}}</a> 46 - <a class="{{if eq .SortType "furthestduedate"}}active {{end}}item" href="{{$.Link}}?sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.furthest_due_date"}}</a> 45 + <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active {{end}}item" href="{{$.Link}}?sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.earliest_due_data"}}</a> 46 + <a class="{{if eq .SortType "furthestduedate"}}active {{end}}item" href="{{$.Link}}?sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.latest_due_date"}}</a> 47 47 <a class="{{if eq .SortType "leastcomplete"}}active {{end}}item" href="{{$.Link}}?sort=leastcomplete&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.least_complete"}}</a> 48 48 <a class="{{if eq .SortType "mostcomplete"}}active {{end}}item" href="{{$.Link}}?sort=mostcomplete&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.most_complete"}}</a> 49 49 <a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="{{$.Link}}?sort=mostissues&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.most_issues"}}</a>