##// END OF EJS Templates
email templates: don't do HTML escaping in plain text templates - convert to Unicode
Andrew Shadura -
r4846:4fbab9d5 default
parent child Browse files
Show More
@@ -2,18 +2,18
2 <%inherit file="main.txt"/>
2 <%inherit file="main.txt"/>
3
3
4 %if is_mention:
4 %if is_mention:
5 ${_('Comment from %s on %s changeset %s mentioned you') % (cs_comment_user, cs_target_repo, h.short_id(raw_id))}:
5 ${_('Comment from %s on %s changeset %s mentioned you') % (cs_comment_user, cs_target_repo, h.short_id(raw_id))|n,unicode}:
6 %else:
6 %else:
7 ${_('Comment from %s on %s changeset %s') % (cs_comment_user, cs_target_repo, h.short_id(raw_id))}:
7 ${_('Comment from %s on %s changeset %s') % (cs_comment_user, cs_target_repo, h.short_id(raw_id))|n,unicode}:
8 %endif
8 %endif
9 ${body}
9 ${body|n,unicode}
10
10
11 %if status_change:
11 %if status_change:
12 ${_('The changeset status was changed to')}: ${status_change}
12 ${_('The changeset status was changed to')|n,unicode}: ${status_change|n,unicode}
13 %endif
13 %endif
14
14
15 ${_('URL')}: ${cs_comment_url}
15 ${_('URL')|n,unicode}: ${cs_comment_url|n,unicode}
16
16
17 ${_('Changeset')}: ${h.short_id(raw_id)}
17 ${_('Changeset')|n,unicode}: ${h.short_id(raw_id)|n,unicode}
18 ${_('Description')}:
18 ${_('Description')|n,unicode}:
19 ${h.shorter(message, 256)}
19 ${h.shorter(message, 256)|n,unicode}
@@ -1,4 +1,4
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="main.txt"/>
2 <%inherit file="main.txt"/>
3
3
4 ${body}
4 ${body|n,unicode}
@@ -1,4 +1,4
1 ${self.body()}
1 ${self.body()|n,unicode}
2
2
3 --
3 --
4 ${_("This is an automatic notification. Don't reply to this mail.")}
4 ${_("This is an automatic notification. Don't reply to this mail.")|n,unicode}
@@ -1,11 +1,11
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="main.txt"/>
2 <%inherit file="main.txt"/>
3
3
4 ${_('Hello %s') % user}
4 ${_('Hello %s') % user|n,unicode}
5
5
6 ${_('We received a request to create a new password for your account.')}
6 ${_('We received a request to create a new password for your account.')|n,unicode}
7 ${_('You can generate it by clicking following URL')}:
7 ${_('You can generate it by clicking following URL')|n,unicode}:
8
8
9 ${reset_url}
9 ${reset_url|n,unicode}
10
10
11 ${_("Please ignore this email if you did not request a new password .")}
11 ${_("Please ignore this email if you did not request a new password .")|n,unicode}
@@ -2,19 +2,19
2 <%inherit file="main.txt"/>
2 <%inherit file="main.txt"/>
3
3
4 %if is_mention:
4 %if is_mention:
5 ${_('%s mentioned you on %s pull request "%s"') % (pr_user_created, repo_name, pr_title)}
5 ${_('%s mentioned you on %s pull request "%s"') % (pr_user_created, repo_name, pr_title)|n,unicode}
6 %else:
6 %else:
7 ${_('%s requested your review of %s pull request "%s"') % (pr_user_created, repo_name, pr_title)}
7 ${_('%s requested your review of %s pull request "%s"') % (pr_user_created, repo_name, pr_title)|n,unicode}
8 %endif
8 %endif
9
9
10 ${_('URL')}: ${pr_url}
10 ${_('URL')|n,unicode}: ${pr_url|n,unicode}
11
11
12 ${_('Description')}:
12 ${_('Description')|n,unicode}:
13 ${body}
13 ${body|n,unicode}
14
14
15 ${_('Changesets')}:
15 ${_('Changesets')|n,unicode}:
16 %for r,r_msg in pr_revisions:
16 %for r,r_msg in pr_revisions:
17 ${h.short_id(r)}:
17 ${h.short_id(r)|n,unicode}:
18 ${h.shorter(r_msg, 256)}
18 ${h.shorter(r_msg, 256)|n,unicode}
19
19
20 %endfor
20 %endfor
@@ -1,15 +1,15
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="main.txt"/>
2 <%inherit file="main.txt"/>
3
3
4 ${_('Comment from %s on %s pull request "%s"') % (pr_comment_user, repo_name, pr_title)}:
4 ${_('Comment from %s on %s pull request "%s"') % (pr_comment_user, repo_name, pr_title)|n,unicode}:
5 ${body}
5 ${body|n,unicode}
6
6
7 %if status_change:
7 %if status_change:
8 %if closing_pr:
8 %if closing_pr:
9 ${_('The comment closed the pull request with status')}: ${status_change}
9 ${_('The comment closed the pull request with status')|n,unicode}: ${status_change|n,unicode}
10 %else:
10 %else:
11 ${_('The comment was made with status')}: ${status_change}
11 ${_('The comment was made with status')|n,unicode}: ${status_change|n,unicode}
12 %endif
12 %endif
13 %endif
13 %endif
14
14
15 ${_('URL')}: ${pr_comment_url}
15 ${_('URL')|n,unicode}: ${pr_comment_url|n,unicode}
@@ -1,6 +1,6
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="main.txt"/>
2 <%inherit file="main.txt"/>
3
3
4 ${body}
4 ${body|n,unicode}
5
5
6 ${_('View this user here')}: ${registered_user_url}
6 ${_('View this user here')|n,unicode}: ${registered_user_url|n,unicode}
General Comments 0
You need to be logged in to leave comments. Login now