1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Localize Email Templates (#16200)

close #14822
This commit is contained in:
6543
2021-06-23 14:33:21 +02:00
committed by GitHub
parent d4ae87ea32
commit be81dc8b20
13 changed files with 144 additions and 72 deletions

View File

@@ -9,12 +9,12 @@
</head>
<body>
<p>You have been added as a collaborator of repository: <code>{{.RepoName}}</code></p>
<p>{{.i18n.Tr "mail.repo.collaborator.added.text"}} <code>{{.RepoName}}</code></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>

View File

@@ -5,13 +5,14 @@
<title>{{.Subject}}</title>
</head>
{{$url := printf "<a href='%[1]s'>%[2]s</a>" .Link .Repo}}
<body>
<p>{{.Subject}}.
To accept or reject it visit <a href="{{.Link}}">{{.Repo}}</a> or just ignore it.
{{.i18n.Tr "mail.repo.transfer.body" $url | Str2html}}
<p>
---
<br>
<a href="{{.Link}}">View it on {{AppName}}</a>.
<a href="{{.Link}}">{{.i18n.Tr "mail.view_it_on" AppName}}</a>.
</p>
</body>
</html>