view kallithea/templates/email_templates/changeset_comment.txt @ 8347:cd3f326d0ff1

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>
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Mon, 06 Apr 2020 21:29:37 +0200
parents 8b75085c2c02
children
line wrap: on
line source

<%block name="header">\
<% title = _('Mention in Comment on Changeset "%s"') % h.shorter(message, 200, firstline=True) if is_mention else _('Comment on Changeset "%s"') % h.shorter(message, 200, firstline=True) %>\
<%include file="header.txt" args="title=title,link=cs_comment_url"/>\
</%block>\

<%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}:
"${h.shorter(message, 60, firstline=True)|n,unicode}" \
${_('by')|n,unicode} \
${cs_author.full_name_and_username|n,unicode}.

<% title = _('View Comment') %>\
<%include file="button.txt" args="url=cs_comment_url,title=title"/>\