Skip to content

Commit

Permalink
make invites and reset emails translatable again
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jan 23, 2018
1 parent ee9d68a commit 90c5334
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
9 changes: 6 additions & 3 deletions ckan/templates/emails/invite_user.txt
@@ -1,5 +1,6 @@
Dear {{ user_name }},
{% trans %}Dear {{ user_name }},{% endtrans %}

{% trans -%}
You have been invited to {{ site_title }}.

A user has already been created for you with the username {{ user_name }}. You can change it later.
Expand All @@ -9,9 +10,11 @@ You have been added to the {{ group_type }} {{ group_title }} with the following
To accept this invite, please reset your password at:

{{ reset_link }}
{%- endtrans %}


Have a nice day.
{% trans %}Have a nice day.{% endtrans %}

--
{% trans -%}
Message sent by {{ site_title }} ({{ site_url }})
{%- endtrans %}
2 changes: 1 addition & 1 deletion ckan/templates/emails/invite_user_subject.txt
@@ -1 +1 @@
Invite for {{ site_title }}
{% trans site_title=site_title %}Invite for {{ site_title }}{% endtrans %}
8 changes: 6 additions & 2 deletions ckan/templates/emails/reset_password.txt
@@ -1,12 +1,16 @@
Dear {{ user_name }},
{% trans %}Dear {{ user_name }},{% endtrans %}

{% trans -%}
You have requested your password on {{ site_title }} to be reset.

Please click the following link to confirm this request:

{{ reset_link }}
{%- endtrans %}

Have a nice day.
{% trans %}Have a nice day.{% endtrans %}

--
{% trans -%}
Message sent by {{ site_title }} ({{ site_url }})
{%- endtrans %}
2 changes: 1 addition & 1 deletion ckan/templates/emails/reset_password_subject.txt
@@ -1 +1 @@
Reset your password - {{ site_title }}
{{ _('Reset your password') }} - {{ site_title }}

0 comments on commit 90c5334

Please sign in to comment.