diff options
author | 6543 <6543@obermui.de> | 2021-06-23 14:33:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 14:33:21 +0200 |
commit | be81dc8b20b86c87031cd1d2d7c9a2fe82f52ba8 (patch) | |
tree | ef1705f5c1dd04e8e1810af127aa5bd1afaed478 /templates/mail/issue/assigned.tmpl | |
parent | d4ae87ea32aaef458da48404b8c7bc11d0165852 (diff) | |
download | gitea-be81dc8b20b86c87031cd1d2d7c9a2fe82f52ba8.tar.gz gitea-be81dc8b20b86c87031cd1d2d7c9a2fe82f52ba8.zip |
Localize Email Templates (#16200)
close #14822
Diffstat (limited to 'templates/mail/issue/assigned.tmpl')
-rw-r--r-- | templates/mail/issue/assigned.tmpl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/mail/issue/assigned.tmpl b/templates/mail/issue/assigned.tmpl index 5b0d2526f1..61e4a44f02 100644 --- a/templates/mail/issue/assigned.tmpl +++ b/templates/mail/issue/assigned.tmpl @@ -8,13 +8,21 @@ <title>{{.Subject}}</title> </head> +{{$repo_url := printf "<a href='%s'>%s</a>" .Release.Repo.HTMLURL .Release.Repo.FullName}} +{{$link := printf "<a href='%s'>#%d</a>" .Link .Issue.Index}} <body> - <p>@{{.Doer.Name}} assigned you to the {{if .IsPull}}pull request{{else}}issue{{end}} <a href="{{.Link}}">#{{.Issue.Index}}</a> in repository {{.Repo}}.</p> + <p> + {{if .IsPull}} + {{.i18n.Tr "mail.issue_assigned.pull" .Doer.Name $link $repo_url | Str2html}} + {{else}} + {{.i18n.Tr "mail.issue_assigned.issue" .Doer.Name $link $repo_url | Str2html}} + {{end}} + </p> <div class="footer"> <p> --- <br> - <a href="{{.Link}}">View it on {{AppName}}</a>. + <a href="{{.Link}}">{{.i18n.Tr "mail.view_it_on" AppName}}</a>. </p> </div> </body> |