Skip to content

Commit de00672

Browse files
committed
register_notify
1 parent f8d0987 commit de00672

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

options/locale/locale_en-US.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,16 @@ activate_account = Please activate your account
321321
activate_account.title = %s, please activate your account
322322
activate_account.body = <p>Hi <b>%[1]s</b>, thanks for registering at %[5]s!</p><br><p>Please click the following link to activate your account within <b>%[2]s</b>:</p><br><p><a href="%[3]s">%[3]s</a></p><br><p>Not working? Try copying and pasting it to your browser.</p><br><p>© <a target="_blank" rel="noopener noreferrer" href="%[4]s">%[5]s</a></p>
323323
324-
324+
activate_email = Verify your email address
325325
activate_email.title = %s, please verify your e-mail address
326326
activate_email.body = <p>Hi <b>%[1]s</b>,</p><br><p>Please click the following link to verify your email address within <b>%[2]s</b>:</p><br><p><a href="%[3]s">%[3]s</a></p><br><p>Not working? Try copying and pasting it to your browser.</p><br><p>© <a target="_blank" rel="noopener noreferrer" href="%[4]s">%[5]s</a></p>
327-
activate_email = Verify your email address
328327
328+
register_notify = Welcome to Gitea
329+
register_notify.title = %[1]s, welcome to %[2]s
330+
register_notify.body = <p>Hi <b>%[1]s</b>, this is your registration confirmation email for %[4]s!</p><br><br><p>You can now login via username: %[2]s.</p><br><p><a href="%[3]suser/login">%[3]suser/login</a></p><br><p>If this account has been created for you, please <a href="%[3]suser/forgot_password">set your password</a> first.</p><br><p>© <a target="_blank" rel="noopener noreferrer" href="%[3]s">%[4]s</a></p>
329331
330332
reset_password = Recover your account
331333
register_success = Registration successful
332-
register_notify = Welcome to Gitea
333334
334335
release.new.subject = %s in %s released
335336

templates/mail/auth/register_notify.tmpl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
<html>
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5-
<title>{{.DisplayName}}, welcome to {{AppName}}</title>
5+
<title>{{.i18n.Tr "mail.register_notify.title" .DisplayName AppName}}</title>
66
</head>
77

88
<body>
9-
<p>Hi <b>{{.DisplayName}}</b>, this is your registration confirmation email for {{AppName}}!</p>
10-
<p>You can now login via username: {{.Username}}.</p>
11-
<p><a href="{{AppUrl}}user/login">{{AppUrl}}user/login</a></p>
12-
<p>If this account has been created for you, please <a href="{{AppUrl}}user/forgot_password">set your password</a> first.</p>
13-
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
9+
{{.i18n.Tr "mail.register_notify.body" .DisplayName .Username AppUrl AppName | Str2html}}
1410
</body>
1511
</html>

0 commit comments

Comments
 (0)