Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bug 846386] l10n the kb email templates
* overhaul code to support setting the right locale for each user for each email sent * convert kb email templates from Django to Jinja2
- Loading branch information
Showing
11 changed files
with
290 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
{% autoescape off %}{% load i18n %}{% load unsubscribe_instructions %}{# L10n: This is an email. Whitespace matters! #}{% blocktrans %}{{ reviewer }} has approved the revision to the document {{ document_title }}. | ||
{# This is an email. Whitespace matters! #} | ||
{% from "includes/unsubscribe_text.ltxt" import unsubscribe_text with context %} | ||
{% autoescape false %} | ||
{% trans reviewer=reviewer, document_title=document_title %} | ||
{{ reviewer }} has approved the revision to the document | ||
{{ document_title }}. | ||
{% endtrans %} | ||
|
||
|
||
{% trans %} | ||
To view the updated document, click the following link, or paste it | ||
into your browser's location bar: | ||
{% endtrans %} | ||
|
||
|
||
To view the updated document, click the following link, or paste it into your browser's location bar: | ||
{% endblocktrans %} | ||
https://{{ host }}{{ url }} | ||
|
||
-- | ||
{% trans "Summary:" %} | ||
{# L10n: This is in an email. #} | ||
{{ _('Summary:') }} | ||
{{ summary|safe }} | ||
|
||
-- | ||
{% blocktrans %}Changes:{% endblocktrans %} | ||
{# L10n: This is in an email. #} | ||
{{ _('Changes:') }} | ||
{{ diff|safe }} | ||
{% unsubscribe_instructions watch %}{% endautoescape %} | ||
|
||
{{ unsubscribe_text(watch) }}{% endautoescape %} |
Oops, something went wrong.