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/auth/register_notify.tmpl | |
parent | d4ae87ea32aaef458da48404b8c7bc11d0165852 (diff) | |
download | gitea-be81dc8b20b86c87031cd1d2d7c9a2fe82f52ba8.tar.gz gitea-be81dc8b20b86c87031cd1d2d7c9a2fe82f52ba8.zip |
Localize Email Templates (#16200)
close #14822
Diffstat (limited to 'templates/mail/auth/register_notify.tmpl')
-rw-r--r-- | templates/mail/auth/register_notify.tmpl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/mail/auth/register_notify.tmpl b/templates/mail/auth/register_notify.tmpl index ea1857030a..e1ab97b760 100644 --- a/templates/mail/auth/register_notify.tmpl +++ b/templates/mail/auth/register_notify.tmpl @@ -2,14 +2,16 @@ <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title>{{.DisplayName}}, welcome to {{AppName}}</title> + <title>{{.i18n.Tr "mail.register_notify.title" .DisplayName AppName}}</title> </head> +{{$set_pwd_url := printf "%[1]suser/forgot_password" AppUrl}} <body> - <p>Hi <b>{{.DisplayName}}</b>, this is your registration confirmation email for {{AppName}}!</p> - <p>You can now login via username: {{.Username}}.</p> - <p><a href="{{AppUrl}}user/login">{{AppUrl}}user/login</a></p> - <p>If this account has been created for you, please <a href="{{AppUrl}}user/forgot_password">set your password</a> first.</p> + <p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br> + <p>{{.i18n.Tr "mail.register_notify.text_1" AppName}}</p><br> + <p>{{.i18n.Tr "mail.register_notify.text_2" .Username}}</p><p><a href="{{AppUrl}}user/login">{{AppUrl}}user/login</a></p><br> + <p>{{.i18n.Tr "mail.register_notify.text_3" $set_pwd_url | Str2html}}</p><br> + <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p> </body> </html> |