templates: share translable strings between txt and html email parts (#32791)

This commit is contained in:
Frédéric Péters 2019-05-05 15:51:27 +02:00
parent a5fc1d78e5
commit 8be2e0911c
2 changed files with 12 additions and 8 deletions

View File

@ -1,11 +1,13 @@
{% load i18n %}
<html>
<body style="max-width: 90ex">
{% blocktrans %}
<p>{{ full_name }},</p>
<p>Your account on {{ site }} has been deleted.
All related data will be deleted today.
You cannot log in with it anymore.</p>
{% endblocktrans %}
<p>{% blocktrans %}{{ full_name }},{% endblocktrans %}</p>
<p>
{% blocktrans %}
Your account on {{ site }} has been deleted.
All related data will be deleted today.
You cannot log in with it anymore.
{% endblocktrans %}
</p>
</body>
</html>

View File

@ -1,6 +1,8 @@
{% load i18n %}{% autoescape off %}{% blocktrans %}{{ full_name }},
{% load i18n %}{% autoescape off %}{% blocktrans %}{{ full_name }},{% endblocktrans %}
{% blocktrans %}
Your account on {{ site }} has been deleted.
All related data will be deleted today.
You cannot log in with it anymore.
{% endblocktrans %}{% endautoescape %}
{% endblocktrans %}
{% endautoescape %}