Use TrN helper for email templates (#16425)
* Add TrN helper * use TrN * a nit
This commit is contained in:
parent
8464fa15d0
commit
8798e3a098
5 changed files with 9 additions and 6 deletions
|
@ -30,11 +30,7 @@
|
|||
|
||||
{{.i18n.Tr "mail.issue.action.force_push" .Doer.Name .Comment.Issue.PullRequest.HeadBranch $oldCommitLink $newCommitLink | Str2html}}
|
||||
{{else}}
|
||||
{{if eq .Comment.Commits.Len 1}}
|
||||
{{.i18n.Tr "mail.issue.action.push_1" .Doer.Name .Comment.Issue.PullRequest.HeadBranch | Str2html}}
|
||||
{{else}}
|
||||
{{.i18n.Tr "mail.issue.action.push_n" .Doer.Name .Comment.Issue.PullRequest.HeadBranch .Comment.Commits.Len | Str2html}}
|
||||
{{end}}
|
||||
{{.i18n.Tr (TrN .i18n.Lang .Comment.Commits.Len "mail.issue.action.push_1" "mail.issue.action.push_n") .Doer.Name .Comment.Issue.PullRequest.HeadBranch .Comment.Commits.Len | Str2html}}
|
||||
{{end}}
|
||||
</p>
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue