Skip to content

Commit 0728479

Browse files
authored
Fix invalid params and typo of email templates (#16394)
Signed-off-by: Meano <[email protected]>
1 parent 7a40206 commit 0728479

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

options/locale/locale_en-US.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ hi_user_x = Hi <b>%s</b>,
326326
327327
activate_account = Please activate your account
328328
activate_account.title = %s, please activate your account
329-
activate_account.test_1 = Hi <b>%[1]s</b>, thanks for registering at %[2]s!
330-
activate_account.test_2 = Please click the following link to activate your account within <b>%s</b>:
329+
activate_account.text_1 = Hi <b>%[1]s</b>, thanks for registering at %[2]s!
330+
activate_account.text_2 = Please click the following link to activate your account within <b>%s</b>:
331331
332332
activate_email = Verify your email address
333333
activate_email.title = %s, please verify your e-mail address

templates/mail/auth/activate.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
{{ $activate_url := printf "%suser/activate?code=%s" AppUrl .Code}}
99
<body>
10-
<p>{{.i18n.Tr "mail.activate_account.test_1" .DisplayName AppName | Str2html}}</p><br>
11-
<p>{{.i18n.Tr "mail.activate_account.test_2" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
12-
<p>{{.i18n.Tr "mail.link_not_working_do_paste" .DisplayName AppName | Str2html}}</p>
10+
<p>{{.i18n.Tr "mail.activate_account.text_1" .DisplayName AppName | Str2html}}</p><br>
11+
<p>{{.i18n.Tr "mail.activate_account.text_2" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
12+
<p>{{.i18n.Tr "mail.link_not_working_do_paste"}}</p>
1313

1414
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
1515
</body>

templates/mail/auth/activate_email.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<body>
1010
<p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br>
1111
<p>{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
12-
<p>{{.i18n.Tr "mail.link_not_working_do_paste" .DisplayName AppName | Str2html}}</p>
12+
<p>{{.i18n.Tr "mail.link_not_working_do_paste"}}</p>
1313

1414
<p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
1515
</body>

0 commit comments

Comments
 (0)