diff --git a/kallithea/templates/email/button.txt b/kallithea/templates/email/button.txt --- a/kallithea/templates/email/button.txt +++ b/kallithea/templates/email/button.txt @@ -1,3 +1,3 @@ <%page args="url,title" />\ -${title|n,unicode}: ${url} +${title|n}: ${url} diff --git a/kallithea/templates/email/changeset_comment.txt b/kallithea/templates/email/changeset_comment.txt --- a/kallithea/templates/email/changeset_comment.txt +++ b/kallithea/templates/email/changeset_comment.txt @@ -5,13 +5,13 @@ <%include file="comment.txt" args="text=body,author=cs_comment_user,status=status_change"/>\ -${_('Changeset on')|n,unicode} \ -${cs_target_repo|n,unicode} \ -${_('branch')|n,unicode} \ -${branch|n,unicode}: -"${webutils.shorter(message, 60, firstline=True)|n,unicode}" \ -${_('by')|n,unicode} \ -${cs_author.full_name_and_username|n,unicode}. +${_('Changeset on')|n} \ +${cs_target_repo|n} \ +${_('branch')|n} \ +${branch|n}: +"${webutils.shorter(message, 60, firstline=True)|n}" \ +${_('by')|n} \ +${cs_author.full_name_and_username|n}. <% title = _('View Comment') %>\ <%include file="button.txt" args="url=cs_comment_url,title=title"/>\ diff --git a/kallithea/templates/email/comment.txt b/kallithea/templates/email/comment.txt --- a/kallithea/templates/email/comment.txt +++ b/kallithea/templates/email/comment.txt @@ -1,15 +1,15 @@ <%page args="author,text,status,close=False" />\ -${author|n,unicode}: +${author|n}: %if status: -${_('Status change:')|n,unicode} \ -${status|n,unicode} +${_('Status change:')|n} \ +${status|n} %endif %if close: -${_('The pull request has been closed.')|n,unicode} +${_('The pull request has been closed.')|n} %endif -${text|n,unicode} +${text|n} ## Trailing empty line diff --git a/kallithea/templates/email/default.txt b/kallithea/templates/email/default.txt --- a/kallithea/templates/email/default.txt +++ b/kallithea/templates/email/default.txt @@ -1,4 +1,4 @@ <%block name="header">\ \ \ -${body|n,unicode}\ +${body|n}\ diff --git a/kallithea/templates/email/header.txt b/kallithea/templates/email/header.txt --- a/kallithea/templates/email/header.txt +++ b/kallithea/templates/email/header.txt @@ -3,6 +3,6 @@ ${link} %endif -${title|n,unicode} +${title|n} ## Trailing empty line diff --git a/kallithea/templates/email/password_reset.txt b/kallithea/templates/email/password_reset.txt --- a/kallithea/templates/email/password_reset.txt +++ b/kallithea/templates/email/password_reset.txt @@ -3,19 +3,19 @@ <%include file="header.txt" args="title=title,link=None"/>\ \ \ -${_('Hello %s') % user|n,unicode}, +${_('Hello %s') % user|n}, -${_('We have received a request to reset the password for your account.')|n,unicode} +${_('We have received a request to reset the password for your account.')|n} %if reset_token is None: -${_('This account is however managed outside this system and the password cannot be changed here.')|n,unicode} +${_('This account is however managed outside this system and the password cannot be changed here.')|n} %else: -${_('To set a new password, click the following link')|n,unicode}: +${_('To set a new password, click the following link')|n}: -${reset_url|n,unicode} +${reset_url|n} -${_("Should you not be able to use the link above, please type the following code into the password reset form")|n,unicode}: -${reset_token|n,unicode} +${_("Should you not be able to use the link above, please type the following code into the password reset form")|n}: +${reset_token|n} %endif -${_("If it weren't you who requested the password reset, just disregard this message.")|n,unicode} +${_("If it weren't you who requested the password reset, just disregard this message.")|n} diff --git a/kallithea/templates/email/pull_request.txt b/kallithea/templates/email/pull_request.txt --- a/kallithea/templates/email/pull_request.txt +++ b/kallithea/templates/email/pull_request.txt @@ -3,30 +3,30 @@ <%include file="header.txt" args="title=title,link=pr_url"/>\ \ -${_('Pull request')|n,unicode} \ -${pr_nice_id|n,unicode} \ -"${pr_title|n,unicode}" \ -${_('by')|n,unicode} \ -${pr_owner.full_name_and_username|n,unicode} +${_('Pull request')|n} \ +${pr_nice_id|n} \ +"${pr_title|n}" \ +${_('by')|n} \ +${pr_owner.full_name_and_username|n} ${_('from')} \ -${pr_source_repo|n,unicode} \ -${_('branch')|n,unicode} \ -${pr_source_branch|n,unicode} -${_('to')|n,unicode} \ -${pr_target_repo|n,unicode} \ -${_('branch')|n,unicode} \ -${pr_target_branch|n,unicode} +${pr_source_repo|n} \ +${_('branch')|n} \ +${pr_source_branch|n} +${_('to')|n} \ +${pr_target_repo|n} \ +${_('branch')|n} \ +${pr_target_branch|n} -${_('Description')|n,unicode}: +${_('Description')|n}: -${body|n,unicode} +${body|n} -${_('Changesets')|n,unicode}: +${_('Changesets')|n}: %for revision, desc in pr_revisions: -${webutils.shorter(desc, 80, firstline=True)|n,unicode} +${webutils.shorter(desc, 80, firstline=True)|n} %endfor <% title = _('View Pull Request') %>\ diff --git a/kallithea/templates/email/pull_request_comment.txt b/kallithea/templates/email/pull_request_comment.txt --- a/kallithea/templates/email/pull_request_comment.txt +++ b/kallithea/templates/email/pull_request_comment.txt @@ -5,19 +5,19 @@ <%include file="comment.txt" args="text=body,author=pr_comment_user,status=status_change,close=closing_pr"/>\ -${_('Pull request')|n,unicode} \ -${pr_nice_id|n,unicode} \ -"${pr_title|n,unicode}" \ -${_('by')|n,unicode} \ -${pr_owner.full_name_and_username|n,unicode} +${_('Pull request')|n} \ +${pr_nice_id|n} \ +"${pr_title|n}" \ +${_('by')|n} \ +${pr_owner.full_name_and_username|n} ${_('from')} \ -${pr_source_repo|n,unicode} \ -${_('branch')|n,unicode} \ -${pr_source_branch|n,unicode} -${_('to')|n,unicode} \ -${pr_target_repo|n,unicode} \ -${_('branch')|n,unicode} \ -${pr_target_branch|n,unicode} +${pr_source_repo|n} \ +${_('branch')|n} \ +${pr_source_branch|n} +${_('to')|n} \ +${pr_target_repo|n} \ +${_('branch')|n} \ +${pr_target_branch|n} <% title = _('View Comment') %>\ <%include file="button.txt" args="url=pr_comment_url,title=title"/>\ diff --git a/kallithea/templates/email/registration.txt b/kallithea/templates/email/registration.txt --- a/kallithea/templates/email/registration.txt +++ b/kallithea/templates/email/registration.txt @@ -3,11 +3,11 @@ <%include file="header.txt" args="title=title,link=registered_user_url"/>\ \ -${_('Username')|n,unicode}: ${new_username|n,unicode} +${_('Username')|n}: ${new_username|n} -${_('Full Name')|n,unicode}: ${new_full_name|n,unicode} +${_('Full Name')|n}: ${new_full_name|n} -${_('Email')|n,unicode}: ${new_email|n,unicode} +${_('Email')|n}: ${new_email|n} <% title = _('View User Profile') %>\ <%include file="button.txt" args="url=registered_user_url,title=title"/>\