Skip to content

Commit 622d549

Browse files
lunnysilverwind
andauthored
Fix difficult translation for other languages (#24070)
Fix #24051 (comment) --------- Co-authored-by: silverwind <[email protected]>
1 parent 2d91afa commit 622d549

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,7 @@ pulls.delete.text = Do you really want to delete this pull request? (This will p
17131713

17141714
milestones.new = New Milestone
17151715
milestones.closed = Closed %s
1716-
milestones.updated = Updated
1716+
milestones.update_ago = Updated %s
17171717
milestones.no_due_date = No due date
17181718
milestones.open = Open
17191719
milestones.close = Close

templates/repo/issue/milestones.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
{{svg "octicon-check" 16 "gt-mr-3"}}
8989
{{LocaleNumber .NumClosedIssues}}&nbsp;{{$.locale.Tr "repo.issues.closed_title"}}
9090
{{if .TotalTrackedTime}}{{svg "octicon-clock"}} {{.TotalTrackedTime|Sec2Time}}{{end}}
91-
{{if .UpdatedUnix}}{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.updated"}} {{TimeSinceUnix .UpdatedUnix $.locale}}{{end}}
91+
{{if .UpdatedUnix}}{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.update_ago" (TimeSinceUnix .UpdatedUnix $.locale) | Safe}}{{end}}
9292
</span>
9393
</div>
9494
{{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}}

0 commit comments

Comments
 (0)