]> source.dussan.org Git - gitea.git/commitdiff
Fix Nits (#16234)
author6543 <6543@obermui.de>
Wed, 23 Jun 2021 17:43:33 +0000 (19:43 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Jun 2021 17:43:33 +0000 (19:43 +0200)
* template fix

* nits

* add doer to "created issue/pull"

options/locale/locale_en-US.ini
templates/mail/issue/default.tmpl

index ded76272b64ad9ba69b922c9c75a99f97a28d340..59ee6e48ea7f8faa70a793e685b780ecf2bdcb4a 100644 (file)
@@ -348,16 +348,16 @@ issue_assigned.issue = @%[1]s assigned you to the issue %[2]s in repository %[3]
 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_n = <b>@%[1]s</b> pushed %[3]d commits to %s: %[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.
-issue.action.merge = <b>@%[1]s</b> merged #%[2]d into #%[3]s.
+issue.action.merge = <b>@%[1]s</b> merged #%[2]d into %[3]s.
 issue.action.approve = <b>@%[1]s</b> approved this pull request.
 issue.action.reject = <b>@%[1]s</b> requested changes on this pull request.
 issue.action.review = <b>@%[1]s</b> commented on this pull request.
 issue.action.review_dismissed = <b>@%[1]s</b> dismissed last review from %[2]s for this pull request.
 issue.action.ready_for_review = <b>@%[1]s</b> marked this pull request ready for review.
-issue.action.new = Created #%[2]d.
+issue.action.new = <b>@%[1]s</b> created #%[2]d.
 issue.in_tree_path = In %s:
 
 release.new.subject = %s in %s released
index 61fe02037c55733e161ee4cf716765e2616239b2..f7257f6e6b5cec0594991771c853f9441cbdbebb 100644 (file)
@@ -33,7 +33,7 @@
                                {{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_1" .Doer.Name .Comment.Issue.PullRequest.HeadBranch .Comment.Commits.Len | Str2html}}
+                                       {{.i18n.Tr "mail.issue.action.push_n" .Doer.Name .Comment.Issue.PullRequest.HeadBranch .Comment.Commits.Len | Str2html}}
                                {{end}}
                        {{end}}
                </p>