emails: Remove newlines from translated strings in email templates.

Fixes #11390.
This commit is contained in:
anhhuynh
2019-02-08 17:53:01 +08:00
committed by Rishi Gupta
parent 7d42d7b4db
commit bd548eb7f3
21 changed files with 122 additions and 245 deletions

View File

@@ -5,25 +5,10 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<p> <p>{% trans %}Hi {{ user_name }},{% endtrans %}</p>
{% trans %}
Hi {{ user_name }},
{% endtrans %}
</p>
<p> <p>{% trans %}We received a request to change the email address for the Zulip account on {{ realm_uri }} from {{ old_email }} to {{ new_email }}. To confirm this change, please click below:{% endtrans %}
{% trans %} <a class="button" href="{{ activate_url }}">{{_('Confirm email change') }}</a></p>
We received a request to change the email address for the Zulip account on
{{ realm_uri }} from {{ old_email }} to {{ new_email }}.
To confirm this change, please click below:
{% endtrans %}
<a class="button" href="{{ activate_url }}">{{_('Confirm email change') }}</a>
</p>
<p> <p>{% trans %}If you did not request this change, please contact us immediately at <a href="mailto:{{ support_email }}">{{ support_email }}</a>.{% endtrans %}</p>
{% trans %}
If you did not request this change, please contact us immediately at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>.
{% endtrans %}
</p>
{% endblock %} {% endblock %}

View File

@@ -1,15 +1,15 @@
{% trans %} {% trans -%}
Hi {{ user_name }}, Hi {{ user_name }},
{% endtrans %} {%- endtrans %}
{% trans -%}
We received a request to change the email address for the Zulip account on {{ realm_uri }} from {{ old_email }} to {{ new_email }}. To confirm this change, please click below:
{%- endtrans %}
{% trans %}
We received a request to change the email address for the Zulip account on
{{ realm_uri }} from {{ old_email }} to {{ new_email }}.
To confirm this change, please click below:
{% endtrans %}
{{ activate_url }} {{ activate_url }}
{% trans %} {% trans -%}
If you did not request this change, please contact us immediately at If you did not request this change, please contact us immediately at <{{ support_email }}>.
<{{ support_email }}>. {%- endtrans %}
{% endtrans %}

View File

@@ -12,11 +12,5 @@
{{ _('Click the button below to complete registration.') }} {{ _('Click the button below to complete registration.') }}
<a class="button" href="{{ activate_url }}">{{ _('Complete registration') }}</a> <a class="button" href="{{ activate_url }}">{{ _('Complete registration') }}</a>
</p> </p>
<p> <p>{% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}</p>
{% trans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
</p>
{% endblock %} {% endblock %}

View File

@@ -3,7 +3,4 @@
{{ _('Click the link below to complete registration.') }} {{ _('Click the link below to complete registration.') }}
<{{ activate_url }}> <{{ activate_url }}>
{% trans %} {% trans %}Contact us any time at {{ support_email }} if you run into trouble,have any feedback, or just want to chat!{% endtrans %}
Contact us any time at {{ support_email }} if you run into trouble,
have any feedback, or just want to chat!
{% endtrans %}

View File

@@ -5,14 +5,9 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<p> <p>{% trans %}Hi {{ user_name }},{% endtrans %}</p>
{% trans %}
Hi {{ user_name }},
{% endtrans %}
</p>
<p>{% trans %}You can log in to your Zulip organization, {{ realm_name }}, <p>{% trans %}You can log in to your Zulip organization, {{ realm_name }}, at the following link:{% endtrans %}</p>
at the following link:{% endtrans %}</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
@@ -24,8 +19,7 @@ at the following link:{% endtrans %}</p>
<p>{% trans %}The email address associated with your account is {{ email }}.{% endtrans %}</p> <p>{% trans %}The email address associated with your account is {{ email }}.{% endtrans %}</p>
<p>{% trans %}If you have trouble logging in, please contact Zulip support by replying to <p>{% trans %}If you have trouble logging in, please contact Zulip support by replying to this email.{% endtrans %}</p>
this email.{% endtrans %}</p>
<p>{{ _("Thanks for using Zulip!") }}</p> <p>{{ _("Thanks for using Zulip!") }}</p>
{% endblock %} {% endblock %}

View File

@@ -1,14 +1,18 @@
{% trans %} {% trans -%}
Hi {{ user_name }}, Hi {{ user_name }},
{% endtrans %} {%- endtrans %}
{% trans -%}
You can log in to your Zulip organization, {{ realm_name }}, at the following link:
{%- endtrans %}
{% trans %}You can log in to your Zulip organization, {{ realm_name }},
at the following link:{% endtrans %}
{{ realm_uri }} {{ realm_uri }}
{% trans %}The email address associated with your account is {{ email }}.{% endtrans %} {% trans %}The email address associated with your account is {{ email }}.{% endtrans %}
{% trans %}If you have trouble logging in, please contact Zulip support by replying to
this email.{% endtrans %} {% trans %}If you have trouble logging in, please contact Zulip support by replying to this email.{% endtrans %}
{{ _("Thanks for using Zulip!") }} {{ _("Thanks for using Zulip!") }}

View File

@@ -9,13 +9,9 @@
<p> <p>
{% if realm_creation %} {% if realm_creation %}
{% trans %} {% trans %}You've created the new Zulip organization <b>{{ realm_name }}</b>.{% endtrans %}
You've created the new Zulip organization <b>{{ realm_name }}</b>.
{% endtrans %}
{% else %} {% else %}
{% trans %} {% trans %}You've joined the Zulip organization <b>{{ realm_name }}</b>.{% endtrans %}
You've joined the Zulip organization <b>{{ realm_name }}</b>.
{% endtrans %}
{% endif %} {% endif %}
</p> </p>
@@ -31,22 +27,14 @@
{% else %} {% else %}
<li>{{ _('Email:') }} {{ email }}<br/></li> <li>{{ _('Email:') }} {{ email }}<br/></li>
{% endif %} {% endif %}
{% trans %} {% trans %}(you'll need these to sign in to the <a href="https://zulipchat.com/apps">mobile and desktop</a> apps){% endtrans %}
(you'll need these to sign in to the <a href="https://zulipchat.com/apps">mobile and desktop</a> apps)
{% endtrans %}
</p> </p>
<p> <p>
{% if is_realm_admin %} {% if is_realm_admin %}
{% trans %} {% trans %}Check out our <a href="{{ getting_started_link }}">guide for admins</a>, become a Zulip pro with a few <a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!{% endtrans %}
Check out our <a href="{{ getting_started_link }}">guide for admins</a>, become a Zulip pro with a
few <a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!
{% endtrans %}
{% else %} {% else %}
{% trans %} {% trans %}<a href="{{ getting_started_link }}">Learn more</a> about Zulip, become a pro with a few <a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!{% endtrans %}
<a href="{{ getting_started_link }}">Learn more</a> about Zulip, become a pro with a few
<a href="{{ keyboard_shortcuts_link }}">keyboard shortcuts</a>, or <a href="{{ realm_uri }}">dive right in</a>!
{% endtrans %}
{% endif %} {% endif %}
</p> </p>
@@ -56,11 +44,6 @@
</p> </p>
<p> <p>
{% trans %} {% trans %}PS: Follow us on <a href="https://twitter.com/zulip">Twitter</a>, star us on <a href="https://github.com/zulip/zulip">GitHub</a>, or chat with us live on the <a href="https://chat.zulip.org">Zulip community server</a>!{% endtrans %}
PS: Follow us on <a href="https://twitter.com/zulip">Twitter</a>,
star us on <a href="https://github.com/zulip/zulip">GitHub</a>, or
chat with us live on the
<a href="https://chat.zulip.org">Zulip community server</a>!
{% endtrans %}
</p> </p>
{% endblock %} {% endblock %}

View File

@@ -1,9 +1,9 @@
{% if realm_creation %} {% if realm_creation %}
{% trans %} {% trans -%}
{{ realm_name }} on Zulip: Your new organization details {{ realm_name }} on Zulip: Your new organization details
{% endtrans %} {%- endtrans %}
{% else %} {% else %}
{% trans %} {% trans -%}
{{ realm_name }} on Zulip: Your new account details {{ realm_name }} on Zulip: Your new account details
{% endtrans %} {%- endtrans %}
{% endif %} {% endif %}

View File

@@ -1,15 +1,12 @@
{{ _('Welcome to Zulip!') }} {{ _('Welcome to Zulip!') }}
{% if realm_creation %} {% if realm_creation %}
{% trans %} {% trans %}You've created the new Zulip organization {{ realm_name }}.{% endtrans %}
You've created the new Zulip organization {{ realm_name }}.
{% endtrans %}
{% else %} {% else %}
{% trans %} {% trans %}You've joined the Zulip organization {{ realm_name }}.{% endtrans %}
You've joined the Zulip organization {{ realm_name }}.
{% endtrans %}
{% endif %} {% endif %}
{{ _('Your account details:') }} {{ _('Your account details:') }}
* {{ _('Organization URL:') }} {{ realm_uri }} * {{ _('Organization URL:') }} {{ realm_uri }}
{% if ldap %} {% if ldap %}
@@ -21,27 +18,17 @@ You've joined the Zulip organization {{ realm_name }}.
{% else %} {% else %}
* {{ _('Email:') }} {{ email }} * {{ _('Email:') }} {{ email }}
{% endif %} {% endif %}
{% trans %} {% trans %}(you'll need these to sign in to the mobile and desktop apps (https://zulipchat.com/apps)){% endtrans %}
(you'll need these to sign in to the mobile and desktop apps (https://zulipchat.com/apps))
{% endtrans %}
{% if is_realm_admin %} {% if is_realm_admin %}
{% trans %} {% trans %}Check out our guide ({{ getting_started_link }}) for admins, become a Zulip pro with a few keyboard shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!{% endtrans %}
Check out our guide ({{ getting_started_link }}) for admins, become a Zulip pro with a
few keyboard shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!
{% endtrans %}
{% else %} {% else %}
{% trans %} {% trans %}Learn more ({{ getting_started_link }}) about Zulip, become a pro with a few keyboard shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!{% endtrans %}
Learn more ({{ getting_started_link }}) about Zulip, become a pro with a few keyboard
shortcuts ({{ keyboard_shortcuts_link }}), or dive right in to {{ realm_uri }}!
{% endtrans %}
{% endif %} {% endif %}
{{ _("Cheers,") }} {{ _("Cheers,") }}
{{ _("Team Zulip") }} {{ _("Team Zulip") }}
{% trans %} {% trans %}PS: Check us out on Twitter (@zulip), star us on GitHub (https://github.com/zulip/zulip), or chat with us live on the Zulip community server (https://chat.zulip.org)!{% endtrans %}
PS: Check us out on Twitter (@zulip), star us on GitHub
(https://github.com/zulip/zulip), or chat with us live on the
Zulip community server (https://chat.zulip.org)!
{% endtrans %}

View File

@@ -5,23 +5,16 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<p>{{ _("Hi there,") }} <p>{{ _("Hi there,") }}</p>
</p>
<p> <p>
{% trans %} {% trans %}{{ referrer_full_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>)wants you to join them on Zulip &mdash; the team communication tool designed for productivity.{% endtrans %}
{{ referrer_full_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>)
wants you to join them on Zulip &mdash; the team communication tool designed for productivity.
{% endtrans %}
</p> </p>
<p> <p>
{{ _("To get started, click the button below.") }} {{ _("To get started, click the button below.") }}
<a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a> <a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a>
</p> </p>
<p> <p>
{% trans %} {% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
</p> </p>
{% endblock %} {% endblock %}

View File

@@ -1,13 +1,8 @@
{{ _("Hi there,") }} {{ _("Hi there,") }}
{% trans %} {% trans %}{{ referrer_full_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.{% endtrans %}
{{ referrer_full_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.
{% endtrans %}
{{ _("To get started, click the link below.") }} {{ _("To get started, click the link below.") }}
<{{ activate_url }}> <{{ activate_url }}>
{% trans %} {% trans %}Contact us any time at {{ support_email }} if you run into trouble,have any feedback, or just want to chat!{% endtrans %}
Contact us any time at {{ support_email }} if you run into trouble,
have any feedback, or just want to chat!
{% endtrans %}

View File

@@ -5,25 +5,17 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<p>{{ _("Hi again,") }} <p>{{ _("Hi again,") }}</p>
</p>
<p> <p>{% trans %}This is a friendly reminder that {{ referrer_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>) wants you to join them on Zulip &mdash; the team communication tool designed for productivity.{% endtrans %}</p>
{% trans %}
This is a friendly reminder that
{{ referrer_name }} (<a href="mailto:{{ referrer_email }}">{{ referrer_email }}</a>)
wants you to join them on Zulip &mdash; the team communication tool designed for productivity.
{% endtrans %}
</p>
<p> <p>
{{ _("To get started, click the button below.") }} {{ _("To get started, click the button below.") }}
<a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a> <a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a>
</p> </p>
<p> <p>
{{ _("This is the last reminder you'll receive for this invitation.") }} {{ _("This is the last reminder you'll receive for this invitation.") }}
{% trans %} {% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
</p> </p>
{% endblock %} {% endblock %}

View File

@@ -1,15 +1,10 @@
{{ _("Hi again,") }} {{ _("Hi again,") }}
{% trans %} {% trans %}This is a friendly reminder that {{ referrer_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.{% endtrans %}
This is a friendly reminder that {{ referrer_name }} ({{ referrer_email }}) wants you to join them on Zulip -- the team communication tool designed for productivity.
{% endtrans %}
{{ _("To get started, click the link below.") }} {{ _("To get started, click the link below.") }}
<{{ activate_url }}> <{{ activate_url }}>
{{ _("This is the last reminder you'll receive for this invitation.") }} {{ _("This is the last reminder you'll receive for this invitation.") }}
{% trans %} {% trans %}Contact us any time at {{ support_email }} if you run into trouble, have any feedback, or just want to chat!{% endtrans %}
Contact us any time at {{ support_email }} if you run into trouble,
have any feedback, or just want to chat!
{% endtrans %}

View File

@@ -1,10 +1,7 @@
{{ _("Hi,") }} {{ _("Hi,") }}
{% trans %} {% trans %}The email associated with your Zulip account was recently changed to {{ new_email }}. If you did not request this change, please contact us immediately at <{{ support_email }}>.{% endtrans %}
The email associated with your Zulip account
was recently changed to {{ new_email }}. If you did not request this change,
please contact us immediately at <{{ support_email }}>.
{% endtrans %}
{{ _("Best,") }} {{ _("Best,") }}
{{ _("Team Zulip") }} {{ _("Team Zulip") }}

View File

@@ -1,7 +1,7 @@
{% extends "zerver/emails/compiled/email_base_default.html" %} {% extends "zerver/emails/compiled/email_base_default.html" %}
{% block preheader %} {% block preheader %}
{% trans organization_url=realm_uri %}Organization: {{ organization_url }} Time: {{ login_time }} Email: {{ user_email }} {% endtrans %} {% trans organization_url=realm_uri %}Organization: {{ organization_url }} Time: {{ login_time }} Email: {{ user_email }}{% endtrans %}
{% endblock %} {% endblock %}
{% block illustration %} {% block illustration %}
@@ -12,25 +12,20 @@
<p>{{ _("We noticed a recent login for the following Zulip account.") }}</p> <p>{{ _("We noticed a recent login for the following Zulip account.") }}</p>
<p> <p>
<ul> <ul>
<li>{% trans %} <li>
Organization: <a href="{{ realm_uri }}" target="_blank">{{ realm_uri }}</a> {% trans %}Organization: <a href="{{ realm_uri }}" target="_blank">{{ realm_uri }}</a>{% endtrans %}
{% endtrans %}
</li> </li>
<li>{% trans %} <li>
Email: <a href="mailto:{{ user_email }}" target="_blank">{{ user_email }}</a> {% trans %}Email: <a href="mailto:{{ user_email }}" target="_blank">{{ user_email }}</a>{% endtrans %}
{% endtrans %}
</li> </li>
<li>{% trans %} <li>
Time: {{ login_time }} {% trans %}Time: {{ login_time }}{% endtrans %}
{% endtrans %}
</li> </li>
<li>{% trans %} <li>
Device: {{ device_browser }} on {{ device_os }}. {% trans %}Device: {{ device_browser }} on {{ device_os }}.{% endtrans %}
{% endtrans %}
</li> </li>
<li>{% trans %} <li>
IP address: {{ device_ip }} {% trans %}IP address: {{ device_ip }}{% endtrans %}
{% endtrans %}
</li> </li>
</ul> </ul>
</p> </p>
@@ -38,11 +33,7 @@
<p>{{ _("If this was you, great! There's nothing else you need to do.") }}</p> <p>{{ _("If this was you, great! There's nothing else you need to do.") }}</p>
<p> <p>
{% trans %} {% trans %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ realm_uri }}/accounts/password/reset/" target="_blank">reset your password</a> or contact us immediately at <a href="mailto:{{ support_email }}">{{ support_email }}</a>.{% endtrans %}
If you do not recognize this login, or think your account may have been compromised, please
<a href="{{ realm_uri }}/accounts/password/reset/" target="_blank">reset your password</a>
or contact us immediately at <a href="mailto:{{ support_email }}">{{ support_email }}</a>.
{% endtrans %}
</p> </p>
<p> <p>

View File

@@ -1,19 +1,21 @@
{{ _("We noticed a recent login for the following Zulip account.") }} {{ _("We noticed a recent login for the following Zulip account.") }}
{% trans organization_url=realm_uri %}Organization: {{ organization_url }}{% endtrans %} {% trans organization_url=realm_uri %}Organization: {{ organization_url }}{% endtrans %}
{% trans %}Email: {{ user_email }}{% endtrans %} {% trans %}Email: {{ user_email }}{% endtrans %}
{% trans %}Time: {{ login_time }}{% endtrans %} {% trans %}Time: {{ login_time }}{% endtrans %}
{% trans %}Device: {{ device_browser }} on {{ device_os }}.{% endtrans %} {% trans %}Device: {{ device_browser }} on {{ device_os }}.{% endtrans %}
{% trans %}IP address: {{ device_ip }}{% endtrans %} {% trans %}IP address: {{ device_ip }}{% endtrans %}
{{ _("If this was you, great! There's nothing else you need to do.") }} {{ _("If this was you, great! There's nothing else you need to do.") }}
{% trans %} {% trans -%}
If you do not recognize this login, or think your account may have If you do not recognize this login, or think your account may have been compromised, please reset your password at {{ realm_uri }}/accounts/password/reset/ or contact us immediately at {{ support_email }}.
been compromised, please reset your password at {%- endtrans %}
{{ realm_uri }}/accounts/password/reset/
or contact us immediately at {{ support_email }}.
{% endtrans %}
{{ _("Thanks,") }} {{ _("Thanks,") }}

View File

@@ -6,9 +6,7 @@
{% block content %} {% block content %}
<p> <p>
{% trans %} {% trans %}Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.{% endtrans %}
Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.
{% endtrans %}
</p> </p>
{% if active_account_in_realm %} {% if active_account_in_realm %}
<p> <p>
@@ -18,15 +16,9 @@
{% else %} {% else %}
<p> <p>
{% if user_deactivated %} {% if user_deactivated %}
{% trans %} {% trans %}You previously had an account on {{ realm_uri }}, but it has been deactivated. You can contact an organization administrator to <a href="{{ realm_uri }}/help/deactivate-or-reactivate-a-user">reactivate your account</a>.{% endtrans %}
You previously had an account on {{ realm_uri }}, but it has been deactivated.
You can contact an organization administrator to
<a href="{{ realm_uri }}/help/deactivate-or-reactivate-a-user">reactivate your account</a>.
{% endtrans %}
{% else %} {% else %}
{% trans %} {% trans %}You do not have an account in that Zulip organization.{% endtrans %}
You do not have an account in that Zulip organization.
{% endtrans %}
{% endif %} {% endif %}
</p> </p>
<p> <p>
@@ -37,14 +29,12 @@
<li>{{ active_account.realm.uri }}</li> <li>{{ active_account.realm.uri }}</li>
{% endfor %} {% endfor %}
</ul> </ul>
{% trans %} {% trans %}You can try logging in or resetting your password in the organization(s) above.{% endtrans %}
You can try logging in or resetting your password in the organization(s) above.
{% endtrans %}
{% endif %} {% endif %}
</p> </p>
{% endif %} {% endif %}
{% trans %} <p>
If you do not recognize this activity, you can safely ignore this email. {% trans %}If you do not recognize this activity, you can safely ignore this email.{% endtrans %}
{% endtrans %} </p>
{% endblock %} {% endblock %}

View File

@@ -1,33 +1,34 @@
{% trans %} {% trans -%}
Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}. Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.
{% endtrans %} {%- endtrans %}
{% if active_account_in_realm %} {% if active_account_in_realm %}
{{ _('Click the link below to reset your password.') }} {{ _('Click the link below to reset your password.') }}
{{ reset_url }} {{ reset_url }}
{% else %} {% else %}
{% if user_deactivated %} {% if user_deactivated %}
{% trans %} {% trans -%}
You previously had an account on {{ realm_uri }}, but it has been deactivated. You previously had an account on {{ realm_uri }}, but it has been deactivated. You can contact an organization administrator to reactivate your account.
You can contact an organization administrator to reactivate your account. {%- endtrans %}
{% endtrans %}
{% else %} {% else %}
{% trans %} {% trans -%}
You do not have an account in that Zulip organization. You do not have an account in that Zulip organization.
{% endtrans %} {%- endtrans %}
{% endif %} {% endif %}
{% if active_accounts_in_other_realms %} {% if active_accounts_in_other_realms %}
{{ _("You do have active accounts in the following organization(s).") }} {{ _("You do have active accounts in the following organization(s).") }}
{% for active_account in active_accounts_in_other_realms %} {% for active_account in active_accounts_in_other_realms %}
{{ active_account.realm.uri }} {{ active_account.realm.uri }}
{% endfor %} {% endfor %}
{% trans %}
{% trans -%}
You can try logging in or resetting your password in the organization(s) above. You can try logging in or resetting your password in the organization(s) above.
{% endtrans %} {%- endtrans %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% trans %} {% trans -%}
If you do not recognize this activity, you can safely ignore this email. If you do not recognize this activity, you can safely ignore this email.
{% endtrans %} {%- endtrans %}

View File

@@ -5,32 +5,16 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<p> <p>{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}</p>
{% trans %}
Dear former administrators of {{ realm_name }}, <p>{% trans %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_uri }}.{% endtrans %}</p>
{% endtrans %}
</p>
<p>
{% trans %}
One of your administrators requested reactivation of the
previously deactivated Zulip organization hosted at {{ realm_uri }}.
{% endtrans %}
</p>
<p> <p>
{{ _('Click the button below to reactivate your organization.') }} {{ _('Click the button below to reactivate your organization.') }}
<a class="button" href="{{ confirmation_url }}">{{ _('Reactivate organization') }}</a> <a class="button" href="{{ confirmation_url }}">{{ _('Reactivate organization') }}</a>
</p> </p>
<p>
{% trans %} <p>{% trans %}If the request was in error, you can take no action and this link will expire in 24 hours.{% endtrans %}</p>
If the request was in error, you can take no action and this link
will expire in 24 hours. <p>{% trans %}Contact us any time at <a href="mailto:{{ support_email }}">{{ support_email }}</a> if you run into trouble, have any feedback, or just want to chat!{% endtrans %}</p>
{% endtrans %}
</p>
<p>
{% trans %}
Contact us any time at
<a href="mailto:{{ support_email }}">{{ support_email }}</a>
if you run into trouble, have any feedback, or just want to chat!
{% endtrans %}
</p>
{% endblock %} {% endblock %}

View File

@@ -1,20 +1,13 @@
{% trans %} {% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}
Dear former administrators of {{ realm_name }},
{% endtrans %}
{% trans %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_uri }}.{% endtrans %}
{% trans %}
One of your administrators requested reactivation of the previously deactivated
Zulip organization hosted at {{ realm_uri }}.
{% endtrans %}
{{ _('Click the link below to reactivate your organization.') }} {{ _('Click the link below to reactivate your organization.') }}
<{{ confirmation_url }}> <{{ confirmation_url }}>
{% trans %} {% trans %}If the request was in error, you can take no action and this link will expire in 24 hours.{% endtrans %}
If the request was in error, you can take no action and this link will expire in 24 hours.
{% endtrans %}
{% trans %}
Contact us any time at {{ support_email }} if you run into trouble, {% trans %}Contact us any time at {{ support_email }} if you run into trouble, have any feedback, or just want to chat!{% endtrans %}
have any feedback, or just want to chat!
{% endtrans %}

View File

@@ -102,7 +102,7 @@ class EmailChangeTestCase(ZulipTestCase):
tokenized_no_reply_email = parseaddr(email_message.from_email)[1] tokenized_no_reply_email = parseaddr(email_message.from_email)[1]
self.assertTrue(re.search(self.TOKENIZED_NOREPLY_REGEX, tokenized_no_reply_email)) self.assertTrue(re.search(self.TOKENIZED_NOREPLY_REGEX, tokenized_no_reply_email))
activation_url = [s for s in body.split('\n') if s][4] activation_url = [s for s in body.split('\n') if s][2]
response = self.client_get(activation_url) response = self.client_get(activation_url)
self.assert_in_success_response(["This confirms that the email address"], self.assert_in_success_response(["This confirms that the email address"],
@@ -164,7 +164,7 @@ class EmailChangeTestCase(ZulipTestCase):
do_set_realm_property(user_profile.realm, 'email_changes_disabled', True) do_set_realm_property(user_profile.realm, 'email_changes_disabled', True)
activation_url = [s for s in body.split('\n') if s][4] activation_url = [s for s in body.split('\n') if s][2]
response = self.client_get(activation_url) response = self.client_get(activation_url)
self.assertEqual(response.status_code, 400) self.assertEqual(response.status_code, 400)