Changeset - cd3f326d0ff1
[Not reviewed]
default
0 11 0
Thomas De Schampheleire - 6 years ago 2020-04-06 21:29:37
thomas.de_schampheleire@nokia.com
Grafted from: 6cd57f0c9c0a
email templates: fix missing translation of titles and buttons

The buttons and titles of email templates were not correctly translated. The
corresponding strings were not part of the i18n files because they were not
recognized by the extraction logic.

Note: this will generate new translation strings.

Reported-by: Jan Heylen <jan.heylen@nokia.com>
11 files changed with 26 insertions and 13 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/email_templates/changeset_comment.html
Show inline comments
 
@@ -33,7 +33,8 @@
 
    </tr>
 
    <tr>
 
        <td>
 
<%include file="button.html" args="url=cs_comment_url,title=_('View Comment'),padding_bottom=False"/>\
 
<% title = _('View Comment') %>\
 
<%include file="button.html" args="url=cs_comment_url,title=title,padding_bottom=False"/>\
 
        </td>
 
    </tr>
 
</table>
kallithea/templates/email_templates/changeset_comment.txt
Show inline comments
 
@@ -13,4 +13,5 @@ ${branch|n,unicode}:
 
${_('by')|n,unicode} \
 
${cs_author.full_name_and_username|n,unicode}.
 

	
 
<%include file="button.txt" args="url=cs_comment_url,title=_('View Comment')"/>\
 
<% title = _('View Comment') %>\
 
<%include file="button.txt" args="url=cs_comment_url,title=title"/>\
kallithea/templates/email_templates/default.html
Show inline comments
 
<%inherit file="main.html"/>\
 
\
 
<%block name="header">\
 
<%include file="header.html" args="title=_('Message'),link=None"/>\
 
<% title = _('Message') %>\
 
<%include file="header.html" args="title=title,link=None"/>\
 
</%block>\
 
\
 
<table cellpadding="0" cellspacing="0" border="0" width="100%">
kallithea/templates/email_templates/password_reset.html
Show inline comments
 
<%inherit file="main.html"/>\
 
\
 
<%block name="header">\
 
<%include file="header.html" args="title=_('Password Reset Request'),link=None"/>\
 
<% title = _('Password Reset Request') %>\
 
<%include file="header.html" args="title=title,link=None"/>\
 
</%block>\
 
\
 
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed;word-wrap:break-word;">
kallithea/templates/email_templates/password_reset.txt
Show inline comments
 
<%block name="header">\
 
<%include file="header.txt" args="title=_('Password Reset Request'),link=None"/>\
 
<% title = _('Password Reset Request') %>\
 
<%include file="header.txt" args="title=title,link=None"/>\
 
</%block>\
 
\
 
${_('Hello %s') % user|n,unicode},
kallithea/templates/email_templates/pull_request.html
Show inline comments
 
@@ -82,7 +82,8 @@
 
    </tr>
 
    <tr>
 
        <td>
 
<%include file="button.html" args="url=pr_url,title=_('View Pull Request'),padding_bottom=False"/>\
 
<% title = _('View Pull Request') %>\
 
<%include file="button.html" args="url=pr_url,title=title,padding_bottom=False"/>\
 
        </td>
 
    </tr>
 
</table>
kallithea/templates/email_templates/pull_request.txt
Show inline comments
 
@@ -29,4 +29,5 @@ ${_('Changesets')|n,unicode}:
 
${h.shorter(desc, 80, firstline=True)|n,unicode}
 
%endfor
 

	
 
<%include file="button.txt" args="url=pr_url,title='View Pull Request'"/>\
 
<% title = _('View Pull Request') %>\
 
<%include file="button.txt" args="url=pr_url,title=title"/>\
kallithea/templates/email_templates/pull_request_comment.html
Show inline comments
 
@@ -40,7 +40,8 @@
 
    </tr>
 
    <tr>
 
        <td>
 
<%include file="button.html" args="url=pr_comment_url,title=_('View Comment'),padding_bottom=False"/>\
 
<% title = _('View Comment') %>\
 
<%include file="button.html" args="url=pr_comment_url,title=title,padding_bottom=False"/>\
 
        </td>
 
    </tr>
 
</table>
kallithea/templates/email_templates/pull_request_comment.txt
Show inline comments
 
@@ -19,4 +19,5 @@ ${pr_target_repo|n,unicode} \
 
${_('branch')|n,unicode} \
 
${pr_target_branch|n,unicode}
 

	
 
<%include file="button.txt" args="url=pr_comment_url,title=_('View Comment')"/>\
 
<% title = _('View Comment') %>\
 
<%include file="button.txt" args="url=pr_comment_url,title=title"/>\
kallithea/templates/email_templates/registration.html
Show inline comments
 
@@ -2,7 +2,8 @@
 
<%inherit file="main.html"/>\
 
\
 
<%block name="header">\
 
<%include file="header.html" args="title=_('New User Registration'),link=registered_user_url"/>\
 
<% title = _('New User Registration') %>\
 
<%include file="header.html" args="title=title,link=registered_user_url"/>\
 
</%block>\
 
\
 
<table cellpadding="0" cellspacing="0" border="0" width="100%">
 
@@ -38,7 +39,8 @@
 
    </tr>
 
    <tr>
 
        <td colspan="2">
 
<%include file="button.html" args="url=registered_user_url,title=_('View User Profile'),padding_bottom=False"/>\
 
<% title = _('View User Profile') %>\
 
<%include file="button.html" args="url=registered_user_url,title=title,padding_bottom=False"/>\
 
        </td>
 
    </tr>
 
</table>
kallithea/templates/email_templates/registration.txt
Show inline comments
 
<%block name="header">\
 
<%include file="header.txt" args="title=_('New User Registration'),link=registered_user_url"/>\
 
<% title = _('New User Registration') %>\
 
<%include file="header.txt" args="title=title,link=registered_user_url"/>\
 
</%block>\
 

	
 
${_('Username')|n,unicode}: ${new_username|n,unicode}
 
@@ -8,4 +9,5 @@ ${_('Full Name')|n,unicode}: ${new_full_
 

	
 
${_('Email')|n,unicode}: ${new_email|n,unicode}
 

	
 
<%include file="button.txt" args="url=registered_user_url,title='View User Profile'"/>\
 
<% title = _('View User Profile') %>\
 
<%include file="button.txt" args="url=registered_user_url,title=title"/>\
0 comments (0 inline, 0 general)