aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-07-14 15:06:09 +0200
committerGitHub <noreply@github.com>2021-07-14 15:06:09 +0200
commit8798e3a09884521157d75869543263e2e6a7ec78 (patch)
treea4470b6c5278e76419ba75d47678d66e8b734d46 /templates
parent8464fa15d066162554a62ec40fc5e1c1a0563277 (diff)
downloadgitea-8798e3a09884521157d75869543263e2e6a7ec78.tar.gz
gitea-8798e3a09884521157d75869543263e2e6a7ec78.zip
Use TrN helper for email templates (#16425)
* Add TrN helper * use TrN * a nit
Diffstat (limited to 'templates')
-rw-r--r--templates/mail/issue/default.tmpl6
1 files changed, 1 insertions, 5 deletions
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}}
</p>
{{end}}