From 8798e3a09884521157d75869543263e2e6a7ec78 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 14 Jul 2021 15:06:09 +0200 Subject: Use TrN helper for email templates (#16425) * Add TrN helper * use TrN * a nit --- templates/mail/issue/default.tmpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'templates/mail') diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index f7257f6e6b..071acdcbcf 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -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}}

{{end}} -- cgit v1.2.3