From f374a15b478ae25e4a7939ec1358a5f6587480c5 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 1 Feb 2008 11:28:11 +0100 Subject: [PATCH] * Make the influence changed template translatable. --- templates/influences/email/influence_changed | 29 +++++++++----------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/templates/influences/email/influence_changed b/templates/influences/email/influence_changed index aab3324..2e12da0 100644 --- a/templates/influences/email/influence_changed +++ b/templates/influences/email/influence_changed @@ -1,21 +1,18 @@ -{% autoescape off %}From: Inschrijfsysteem -Subject: {% if created %}Influence "{{ influence }}" submitted.{% else %}Influence "{{ influence }}" was changed.{% endif%} +{% load i18n%}{% autoescape off %}From: Inschrijfsysteem +Subject: {% if created %}{% blocktrans %}Influence "{{ influence }}" submitted.{% endblocktrans %}{% else %}{% blocktrans %}Influence "{{ influence }}" was changed.{% endblocktrans %}{% endif%} {% filter wordwrap:72 %} -You have submitted an influence on {{influence.created}}. -{% if not created %}The influence has been modified. The current status is:{% else %}You submitted:{% endif %} +{% blocktrans with influence.created as creation_date %}You have submitted an influence on {{ creation_date }}.{% endblocktrans %} +{% if not created %}{% blocktrans %}The influence has been modified. The current status is{%endblocktrans %}:{% else %}{% blocktrans %}You submitted{% endblocktrans%}:{% endif %} {% endfilter %} -Character: {{ influence.character }} -Contact: {{ influence.contact }} -Summary: {{ influence.summary }} -Status: {{ influence.get_status_display }} -Long term: {{ influence.longterm|yesno|capfirst }} - -Description: +{% filter ljust:20%}{% trans "Character" %}:{%endfilter%}{{ influence.character }} +{% filter ljust:20%}{% trans "Contact" %}:{%endfilter%}{{ influence.contact }} +{% filter ljust:20%}{% trans "Summary" %}:{%endfilter%}{{ influence.summary }} +{% filter ljust:20%}{% trans "Status" %}:{%endfilter%}{{ influence.get_status_display }} +{% filter ljust:20%}{% trans "Long term" %}:{%endfilter%}{{ influence.longterm|yesno|capfirst }} +{% trans "Description" %}: {% filter wordwrap:72 %}{{ influence.description }}{% endfilter %} - {% if influence.result %} -Result: -{{ influence.result }} -{% endif %} -{% endautoescape %} +{% trans "Result" %}: +{% filter wordwrap:72 %}{{ influence.result }}{% endfilter %} +{% endif %}{% endautoescape %} -- 2.30.2