issue.x_mentioned_you = <b>@%s</b> mentioned you:
issue.action.force_push = <b>%[1]s</b> force-pushed the <b>%[2]s</b> from %[3]s to %[4]s.
-issue.action.push_1 = <b>@%[1]s</b> pushed 1 commit to %[2]s
+issue.action.push_1 = <b>@%[1]s</b> pushed %[3]d commit to %[2]s
issue.action.push_n = <b>@%[1]s</b> pushed %[3]d commits to %[2]s
issue.action.close = <b>@%[1]s</b> closed #%[2]d.
issue.action.reopen = <b>@%[1]s</b> reopened #%[2]d.
// helper
"i18n": locale,
"Str2html": templates.Str2html,
+ "TrN": templates.TrN,
}
var content bytes.Buffer
// helper
"i18n": locale,
"Str2html": templates.Str2html,
+ "TrN": templates.TrN,
}
var content bytes.Buffer
// helper
"i18n": locale,
"Str2html": templates.Str2html,
+ "TrN": templates.TrN,
}
var content bytes.Buffer
// helper
"i18n": locale,
"Str2html": templates.Str2html,
+ "TrN": templates.TrN,
}
var content bytes.Buffer
// helper
"i18n": locale,
"Str2html": templates.Str2html,
+ "TrN": templates.TrN,
}
var mailSubject bytes.Buffer
// helper
"i18n": locale,
"Str2html": templates.Str2html,
+ "TrN": templates.TrN,
}
var mailBody bytes.Buffer
// helper
"i18n": locale,
"Str2html": templates.Str2html,
+ "TrN": templates.TrN,
}
if err := bodyTemplates.ExecuteTemplate(&content, string(mailRepoTransferNotify), data); err != nil {
{{.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}}