emails: Replace occurrences of uri with url in email templates.

This commit replaces occurrences of realm_uri with realm_url in email templates
and other related backend files.

Co-authored-by: Junyao Chen <junyao.chen@socitydao.org>
This commit is contained in:
Vector73 2024-05-09 16:58:39 +05:30 committed by Tim Abbott
parent cb2a105de2
commit 93262e03ad
30 changed files with 51 additions and 51 deletions

View File

@ -1920,9 +1920,9 @@ msgstr "Hallo,"
#, python-format #, python-format
msgid "" msgid ""
"We received a request to add the email address %(new_email)s to your Zulip " "We received a request to add the email address %(new_email)s to your Zulip "
"demo organization account on %(realm_uri)s. To confirm this update and set a" "demo organization account on %(realm_url)s. To confirm this update and set a"
" password for this account, please click below:" " password for this account, please click below:"
msgstr "Wir haben eine Anfrage erhalten, die E-Mail-Adresse %(new_email)s zu deinem Zulip-Demo-Organisationskonto auf %(realm_uri)s hinzuzufügen. Um diese Änderung zu bestätigen und ein Passwort für dieses Konto festzulegen, klicke bitte unten:" msgstr "Wir haben eine Anfrage erhalten, die E-Mail-Adresse %(new_email)s zu deinem Zulip-Demo-Organisationskonto auf %(realm_url)s hinzuzufügen. Um diese Änderung zu bestätigen und ein Passwort für dieses Konto festzulegen, klicke bitte unten:"
#: templates/zerver/emails/confirm_demo_organization_email.html:11 #: templates/zerver/emails/confirm_demo_organization_email.html:11
msgid "Confirm and set password" msgid "Confirm and set password"
@ -1953,9 +1953,9 @@ msgstr "Falls du diese Änderung nicht vorgenommen hast, kontaktiere uns bitte s
#, python-format #, python-format
msgid "" msgid ""
"We received a request to change the email address for the Zulip account on " "We received a request to change the email address for the Zulip account on "
"%(realm_uri)s from %(old_email)s to %(new_email)s. To confirm this change, " "%(realm_url)s from %(old_email)s to %(new_email)s. To confirm this change, "
"please click below:" "please click below:"
msgstr "Wir haben eine Anfrage erhalten, die E-Mail-Adresse für den Zulip-Account auf %(realm_uri)s von %(old_email)s zu %(new_email)s zu ändern. Falls du diese Änderung bestätigen möchtest, klicke bitte hier unten: " msgstr "Wir haben eine Anfrage erhalten, die E-Mail-Adresse für den Zulip-Account auf %(realm_url)s von %(old_email)s zu %(new_email)s zu ändern. Falls du diese Änderung bestätigen möchtest, klicke bitte hier unten: "
#: templates/zerver/emails/confirm_new_email.html:11 #: templates/zerver/emails/confirm_new_email.html:11
msgid "Confirm email change" msgid "Confirm email change"
@ -2775,8 +2775,8 @@ msgstr ""
#, python-format #, python-format
msgid "" msgid ""
"Somebody (possibly you) requested a new password for the Zulip account " "Somebody (possibly you) requested a new password for the Zulip account "
"%(email)s on %(realm_uri)s." "%(email)s on %(realm_url)s."
msgstr "Jemand (möglicherweise du selbst) hat ein neues Passwort für dein Zulip-Konto %(email)s bei %(realm_uri)s angefordert." msgstr "Jemand (möglicherweise du selbst) hat ein neues Passwort für dein Zulip-Konto %(email)s bei %(realm_url)s angefordert."
#: templates/zerver/emails/password_reset.html:13 #: templates/zerver/emails/password_reset.html:13
msgid "Click the button below to reset your password." msgid "Click the button below to reset your password."

View File

@ -31,7 +31,7 @@
<p> <p>
{% trans apps_page_link="https://zulip.com/apps/" %}You will use the following info to log into the Zulip web, <a href="{{ apps_page_link }}">mobile and desktop</a> apps:{% endtrans %} {% trans apps_page_link="https://zulip.com/apps/" %}You will use the following info to log into the Zulip web, <a href="{{ apps_page_link }}">mobile and desktop</a> apps:{% endtrans %}
<ul> <ul>
<li>{% trans organization_url=macros.link_tag(realm_uri) %}Organization URL: {{ organization_url }}{% endtrans %}<br /></li> <li>{% trans organization_url=macros.link_tag(realm_url) %}Organization URL: {{ organization_url }}{% endtrans %}<br /></li>
{% if ldap %} {% if ldap %}
{% if ldap_username %} {% if ldap_username %}
<li>{% trans %}Your username: {{ ldap_username }}{% endtrans %}<br /></li> <li>{% trans %}Your username: {{ ldap_username }}{% endtrans %}<br /></li>
@ -42,7 +42,7 @@
<li>{% trans email=macros.email_tag(email) %}Your account email: {{ email }}{% endtrans %}<br /></li> <li>{% trans email=macros.email_tag(email) %}Your account email: {{ email }}{% endtrans %}<br /></li>
{% endif %} {% endif %}
</ul> </ul>
<a class="button" href="{{ realm_uri }}">{{ _('Go to organization') }}</a> <a class="button" href="{{ realm_url }}">{{ _('Go to organization') }}</a>
</p> </p>
<p> <p>

View File

@ -13,7 +13,7 @@
{% trans apps_page_link="https://zulip.com/apps/" %}You will use the following info to log into the Zulip web, mobile and desktop apps ({{ apps_page_link}}):{% endtrans %} {% trans apps_page_link="https://zulip.com/apps/" %}You will use the following info to log into the Zulip web, mobile and desktop apps ({{ apps_page_link}}):{% endtrans %}
* {% trans organization_url=realm_uri %}Organization URL: {{ organization_url }}{% endtrans %} * {% trans organization_url=realm_url %}Organization URL: {{ organization_url }}{% endtrans %}
{% if ldap %} {% if ldap %}
{% if ldap_username %} {% if ldap_username %}

View File

@ -7,7 +7,7 @@
{% block content %} {% block content %}
<p>{% trans %}Hi,{% endtrans %}</p> <p>{% trans %}Hi,{% endtrans %}</p>
<p>{% trans realm_uri=macros.link_tag(realm_uri), new_email=macros.email_tag(new_email) %}We received a request to add the email address {{ new_email }} to your Zulip demo organization account on {{ realm_uri }}. To confirm this update and set a password for this account, please click below:{% endtrans %} <p>{% trans realm_url=macros.link_tag(realm_url), new_email=macros.email_tag(new_email) %}We received a request to add the email address {{ new_email }} to your Zulip demo organization account on {{ realm_url }}. To confirm this update and set a password for this account, please click below:{% endtrans %}
<a class="button" href="{{ activate_url }}">{{_('Confirm and set password') }}</a></p> <a class="button" href="{{ activate_url }}">{{_('Confirm and set password') }}</a></p>
<p>{% trans support_email=macros.email_tag(support_email) %}If you did not request this change, please contact us immediately at {{ support_email }}.{% endtrans %}</p> <p>{% trans support_email=macros.email_tag(support_email) %}If you did not request this change, please contact us immediately at {{ support_email }}.{% endtrans %}</p>

View File

@ -4,7 +4,7 @@ Hi,
{% trans -%} {% trans -%}
We received a request to add the email address {{ new_email }} to your Zulip demo organization account on {{ realm_uri }}. To confirm this update and set a password for this account, please click below: We received a request to add the email address {{ new_email }} to your Zulip demo organization account on {{ realm_url }}. To confirm this update and set a password for this account, please click below:
{%- endtrans %} {%- endtrans %}

View File

@ -7,7 +7,7 @@
{% block content %} {% block content %}
<p>{% trans %}Hi,{% endtrans %}</p> <p>{% trans %}Hi,{% endtrans %}</p>
<p>{% trans realm_uri=macros.link_tag(realm_uri), old_email=macros.email_tag(old_email), new_email=macros.email_tag(new_email) %}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 %} <p>{% trans realm_url=macros.link_tag(realm_url), old_email=macros.email_tag(old_email), new_email=macros.email_tag(new_email) %}We received a request to change the email address for the Zulip account on {{ realm_url }} 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> <a class="button" href="{{ activate_url }}">{{_('Confirm email change') }}</a></p>
<p>{% trans support_email=macros.email_tag(support_email) %}If you did not request this change, please contact us immediately at {{ support_email }}.{% endtrans %}</p> <p>{% trans support_email=macros.email_tag(support_email) %}If you did not request this change, please contact us immediately at {{ support_email }}.{% endtrans %}</p>

View File

@ -4,7 +4,7 @@ Hi,
{% trans -%} {% 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: We received a request to change the email address for the Zulip account on {{ realm_url }} from {{ old_email }} to {{ new_email }}. To confirm this change, please click below:
{%- endtrans %} {%- endtrans %}

View File

@ -15,6 +15,6 @@
{% if remote_server_email %} {% if remote_server_email %}
<p>You are receiving this email to update you about important changes to Zulip's Terms of Service.</p> <p>You are receiving this email to update you about important changes to Zulip's Terms of Service.</p>
{% elif unsubscribe_link %} {% elif unsubscribe_link %}
<p><a href="{{ realm_uri }}/#settings/notifications">{{ _("Manage email preferences") }}</a> | <a href="{{ unsubscribe_link }}">{{ _("Unsubscribe from marketing emails") }}</a></p> <p><a href="{{ realm_url }}/#settings/notifications">{{ _("Manage email preferences") }}</a> | <a href="{{ unsubscribe_link }}">{{ _("Unsubscribe from marketing emails") }}</a></p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -6,7 +6,7 @@
{% block content %} {% block content %}
{% trans %} {% trans %}
Your Zulip account on <a href="{{ realm_uri }}">{{ realm_uri }}</a> has been deactivated, and you will no longer be able to log in. Your Zulip account on <a href="{{ realm_url }}">{{ realm_url }}</a> has been deactivated, and you will no longer be able to log in.
{% endtrans %} {% endtrans %}
<br/><br/> <br/><br/>

View File

@ -1,5 +1,5 @@
{% trans %} {% trans %}
Your Zulip account on {{ realm_uri }} has been deactivated, and you will no longer be able to log in. Your Zulip account on {{ realm_url }} has been deactivated, and you will no longer be able to log in.
{% endtrans %} {% endtrans %}
{% if deactivation_notification_comment %} {% if deactivation_notification_comment %}

View File

@ -31,12 +31,12 @@
<br /> <br />
<p class="digest_paragraph"><a href="{{ realm_uri }}">{% trans %}Click here to log in to Zulip and catch up.{% endtrans %}</a></p> <p class="digest_paragraph"><a href="{{ realm_url }}">{% trans %}Click here to log in to Zulip and catch up.{% endtrans %}</a></p>
{% endblock %} {% endblock %}
{% block manage_preferences %} {% block manage_preferences %}
<p class="digest_paragraph"> <p class="digest_paragraph">
<a href="{{ realm_uri }}/#settings/notifications">{% trans %}Manage email preferences{% endtrans %}</a> | <a href="{{ realm_url }}/#settings/notifications">{% trans %}Manage email preferences{% endtrans %}</a> |
<a href="{{ unsubscribe_link }}">{% trans %}Unsubscribe from digest emails{% endtrans %}</a> <a href="{{ unsubscribe_link }}">{% trans %}Unsubscribe from digest emails{% endtrans %}</a>
</p> </p>
{% endblock %} {% endblock %}

View File

@ -9,12 +9,12 @@
{{ new_channels.plain|display_list(1000) }}. {{ new_channels.plain|display_list(1000) }}.
{% endif %} {% endif %}
{% trans organization_url=realm_uri %}Click here to log in to Zulip and catch up: {{ organization_url }}.{% endtrans %} {% trans organization_url=realm_url %}Click here to log in to Zulip and catch up: {{ organization_url }}.{% endtrans %}
-- --
{% trans %}Manage email preferences:{% endtrans %} {% trans %}Manage email preferences:{% endtrans %}
{{ realm_uri }}/#settings/notifications {{ realm_url }}/#settings/notifications
{% trans %}Unsubscribe from digest emails:{% endtrans %} {% trans %}Unsubscribe from digest emails:{% endtrans %}

View File

@ -14,9 +14,9 @@
{% else %} {% else %}
<div class="missed_message no-content-explanation"> <div class="missed_message no-content-explanation">
{% if message_content_disabled_by_realm %} {% if message_content_disabled_by_realm %}
{% trans help_url=realm_uri + "/help/hide-message-content-in-emails" %}This email does not include message content because your organization has disabled <a class="content_disabled_help_link" href="{{ help_url }}">message content appearing in email notifications</a>.{% endtrans %} {% trans help_url=realm_url + "/help/hide-message-content-in-emails" %}This email does not include message content because your organization has disabled <a class="content_disabled_help_link" href="{{ help_url }}">message content appearing in email notifications</a>.{% endtrans %}
{% elif message_content_disabled_by_user %} {% elif message_content_disabled_by_user %}
{% trans alert_notif_url=realm_uri + "/help/dm-mention-alert-notifications" %}This email does not include message content because you have disabled <a class="content_disabled_help_link" href="{{ alert_notif_url }}">message content appearing in email notifications</a>.{% endtrans %} {% trans alert_notif_url=realm_url + "/help/dm-mention-alert-notifications" %}This email does not include message content because you have disabled <a class="content_disabled_help_link" href="{{ alert_notif_url }}">message content appearing in email notifications</a>.{% endtrans %}
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
@ -43,11 +43,11 @@
{% trans %}You are receiving this because you have email notifications enabled for #{{ channel_name }}.{% endtrans %}<br /> {% trans %}You are receiving this because you have email notifications enabled for #{{ channel_name }}.{% endtrans %}<br />
{% endif %} {% endif %}
{% if reply_to_zulip %} {% if reply_to_zulip %}
{% trans notif_url=realm_uri + "/#settings/notifications" %}Reply to this email directly, <a href="{{ narrow_url }}">view it in {{ realm_name }} Zulip</a>, or <a href="{{ notif_url }}">manage email preferences</a>.{% endtrans %} {% trans notif_url=realm_url + "/#settings/notifications" %}Reply to this email directly, <a href="{{ narrow_url }}">view it in {{ realm_name }} Zulip</a>, or <a href="{{ notif_url }}">manage email preferences</a>.{% endtrans %}
{% elif not show_message_content %} {% elif not show_message_content %}
{% trans notif_url=realm_uri + "/#settings/notifications" %}<a href="{{ narrow_url }}">View or reply in {{ realm_name }} Zulip</a>, or <a href="{{ notif_url }}">manage email preferences</a>.{% endtrans %} <br /> {% trans notif_url=realm_url + "/#settings/notifications" %}<a href="{{ narrow_url }}">View or reply in {{ realm_name }} Zulip</a>, or <a href="{{ notif_url }}">manage email preferences</a>.{% endtrans %} <br />
{% else %} {% else %}
{% trans notif_url=realm_uri + "/#settings/notifications" %}<a href="{{ narrow_url }}">Reply in {{ realm_name }} Zulip</a>, or <a href="{{ notif_url }}">manage email preferences</a>.{% endtrans %} <br /> {% trans notif_url=realm_url + "/#settings/notifications" %}<a href="{{ narrow_url }}">Reply in {{ realm_name }} Zulip</a>, or <a href="{{ notif_url }}">manage email preferences</a>.{% endtrans %} <br />
<br /> <br />
{% trans url="https://zulip.readthedocs.io/en/latest/production/email-gateway.html" %} {% trans url="https://zulip.readthedocs.io/en/latest/production/email-gateway.html" %}
Do not reply to this email. This Zulip server is not configured to accept incoming emails (<a href="{{ url }}">help</a>). Do not reply to this email. This Zulip server is not configured to accept incoming emails (<a href="{{ url }}">help</a>).

View File

@ -8,12 +8,12 @@
{% endfor %} {% endfor %}
{% else %} {% else %}
{% if message_content_disabled_by_realm %} {% if message_content_disabled_by_realm %}
{% trans hide_content_url=realm_uri + "/help/hide-message-content-in-emails" %} {% trans hide_content_url=realm_url + "/help/hide-message-content-in-emails" %}
This email does not include message content because your organization has disabled message content appearing in email notifications. This email does not include message content because your organization has disabled message content appearing in email notifications.
See {{ hide_content_url }} for more details. See {{ hide_content_url }} for more details.
{% endtrans %} {% endtrans %}
{% elif message_content_disabled_by_user %} {% elif message_content_disabled_by_user %}
{% trans alert_notif_url=realm_uri + "/help/dm-mention-alert-notifications" %} {% trans alert_notif_url=realm_url + "/help/dm-mention-alert-notifications" %}
This email does not include message content because you have disabled message content appearing in email notifications. This email does not include message content because you have disabled message content appearing in email notifications.
See {{ alert_notif_url }} for more details. See {{ alert_notif_url }} for more details.
{% endtrans %} {% endtrans %}
@ -61,4 +61,4 @@ https://zulip.readthedocs.io/en/latest/production/email-gateway.html
{% trans %}Manage email preferences: {% endtrans %} {% trans %}Manage email preferences: {% endtrans %}
{{ realm_uri }}/#settings/notifications {{ realm_url }}/#settings/notifications

View File

@ -1,7 +1,7 @@
{% extends "zerver/emails/email_base_default.html" %} {% extends "zerver/emails/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_url %}Organization: {{ organization_url }} Time: {{ login_time }} Email: {{ user_email }}{% endtrans %}
{% endblock %} {% endblock %}
{% block illustration %} {% block illustration %}
@ -13,7 +13,7 @@
<p> <p>
<ul> <ul>
<li> <li>
{% trans organization_link=macros.link_tag(realm_uri) %}Organization: {{ organization_link }}{% endtrans %} {% trans organization_link=macros.link_tag(realm_url) %}Organization: {{ organization_link }}{% endtrans %}
</li> </li>
<li> <li>
{% trans user_email=macros.email_tag(user_email) %}Email: {{ user_email }}{% endtrans %} {% trans user_email=macros.email_tag(user_email) %}Email: {{ user_email }}{% endtrans %}
@ -33,7 +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 support_email=macros.email_tag(support_email), reset_link=realm_uri + "/accounts/password/reset/" %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ reset_link }}">reset your password</a> or contact us immediately at {{ support_email }}.{% endtrans %} {% trans support_email=macros.email_tag(support_email), reset_link=realm_url + "/accounts/password/reset/" %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ reset_link }}">reset your password</a> or contact us immediately at {{ support_email }}.{% endtrans %}
</p> </p>
<p> <p>
@ -43,5 +43,5 @@
{% endblock %} {% endblock %}
{% block manage_preferences %} {% block manage_preferences %}
<p><a href="{{ realm_uri }}/#settings/notifications">{{ _("Manage email preferences") }}</a> | <a href="{{ unsubscribe_link }}">{{ _("Unsubscribe from login notifications") }}</a></p> <p><a href="{{ realm_url }}/#settings/notifications">{{ _("Manage email preferences") }}</a> | <a href="{{ unsubscribe_link }}">{{ _("Unsubscribe from login notifications") }}</a></p>
{% endblock %} {% endblock %}

View File

@ -1,6 +1,6 @@
{{ _("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_url %}Organization: {{ organization_url }}{% endtrans %}
{% trans %}Email: {{ user_email }}{% endtrans %} {% trans %}Email: {{ user_email }}{% endtrans %}
@ -13,7 +13,7 @@
{{ _("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 reset_link=realm_uri + "/accounts/password/reset/" %} {% trans reset_link=realm_url + "/accounts/password/reset/" %}
If you do not recognize this login, or think your account may have been compromised, please reset your password at {{ reset_link }} or contact us immediately at {{ support_email }}. If you do not recognize this login, or think your account may have been compromised, please reset your password at {{ reset_link }} or contact us immediately at {{ support_email }}.
{%- endtrans %} {%- endtrans %}

View File

@ -25,7 +25,7 @@
{% trans %}Don't stress about picking the perfect name for your topic. If anything is out of place, it's easy to <a href="{{ move_messages_link }}">move messages</a>, <a href="{{ rename_topics_link }}">rename topics</a>, or even <a href="{{ move_channels_link }}">move a topic to a different channel</a>.{% endtrans %} {% trans %}Don't stress about picking the perfect name for your topic. If anything is out of place, it's easy to <a href="{{ move_messages_link }}">move messages</a>, <a href="{{ rename_topics_link }}">rename topics</a>, or even <a href="{{ move_channels_link }}">move a topic to a different channel</a>.{% endtrans %}
</p> </p>
<a class="button" href="{{ realm_uri }}">{{ _("Go to Zulip") }}</a> <a class="button" href="{{ realm_url }}">{{ _("Go to Zulip") }}</a>
{% endblock %} {% endblock %}

View File

@ -8,7 +8,7 @@
{{ _("Go to Zulip") }}: {{ _("Go to Zulip") }}:
<{{ realm_uri }}> <{{ realm_url }}>
---- ----
{% trans %}Unsubscribe from welcome emails for {{ realm_name }}{% endtrans %}: {% trans %}Unsubscribe from welcome emails for {{ realm_name }}{% endtrans %}:

View File

@ -6,7 +6,7 @@
{% block content %} {% block content %}
<p> <p>
{% trans email=macros.email_tag(email), realm_uri=macros.link_tag(realm_uri) %}Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.{% endtrans %} {% trans email=macros.email_tag(email), realm_url=macros.link_tag(realm_url) %}Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_url }}.{% endtrans %}
</p> </p>
{% if active_account_in_realm %} {% if active_account_in_realm %}
<p> <p>
@ -16,7 +16,7 @@
{% else %} {% else %}
<p> <p>
{% if user_deactivated %} {% if user_deactivated %}
{% trans organization_url=macros.link_tag(realm_uri), help_link=realm_uri + "/help/deactivate-or-reactivate-a-user" %}You previously had an account on {{ organization_url }}, but it has been deactivated. You can contact an organization administrator to <a href="{{ help_link }}">reactivate your account</a>.{% endtrans %} {% trans organization_url=macros.link_tag(realm_url), help_link=realm_url + "/help/deactivate-or-reactivate-a-user" %}You previously had an account on {{ organization_url }}, but it has been deactivated. You can contact an organization administrator to <a href="{{ help_link }}">reactivate your account</a>.{% endtrans %}
{% else %} {% else %}
{% trans %}You do not have an account in that Zulip organization.{% endtrans %} {% trans %}You do not have an account in that Zulip organization.{% endtrans %}
{% endif %} {% endif %}

View File

@ -1,5 +1,5 @@
{% 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_url }}.
{%- endtrans %} {%- endtrans %}
{% if active_account_in_realm %} {% if active_account_in_realm %}
@ -8,9 +8,9 @@ Somebody (possibly you) requested a new password for the Zulip account {{ email
{% else %} {% else %}
{% 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 reactivate your account. You previously had an account on {{ realm_url }}, but it has been deactivated. You can contact an organization administrator to reactivate your account.
{%- endtrans %} {%- endtrans %}
{{ realm_uri }}/help/deactivate-or-reactivate-a-user {{ realm_url }}/help/deactivate-or-reactivate-a-user
{% else %} {% else %}
{% trans -%} {% trans -%}
You do not have an account in that Zulip organization. You do not have an account in that Zulip organization.

View File

@ -7,7 +7,7 @@
{% block content %} {% block content %}
<p>{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}</p> <p>{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}</p>
<p>{% trans realm_uri=macros.link_tag(realm_uri) %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_uri }}.{% endtrans %}</p> <p>{% trans realm_url=macros.link_tag(realm_url) %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_url }}.{% endtrans %}</p>
<p> <p>
{{ _('Click the button below to reactivate your organization.') }} {{ _('Click the button below to reactivate your organization.') }}

View File

@ -1,7 +1,7 @@
{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %} {% trans %}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_url }}.{% endtrans %}
{{ _('Click the link below to reactivate your organization.') }} {{ _('Click the link below to reactivate your organization.') }}

View File

@ -48,4 +48,4 @@ API_FEATURE_LEVEL = 262
# historical commits sharing the same major version, in which case a # historical commits sharing the same major version, in which case a
# minor version bump suffices. # minor version bump suffices.
PROVISION_VERSION = (270, 3) # last bumped 2024-05-15 for patching @types/plotly.js PROVISION_VERSION = (271, 0) # last bumped 2024-05-24 for translation string changes

View File

@ -757,7 +757,7 @@ def do_send_realm_reactivation_email(realm: Realm, *, acting_user: Optional[User
) )
context = { context = {
"confirmation_url": url, "confirmation_url": url,
"realm_uri": realm.url, "realm_url": realm.url,
"realm_name": realm.name, "realm_name": realm.name,
"corporate_enabled": settings.CORPORATE_ENABLED, "corporate_enabled": settings.CORPORATE_ENABLED,
} }

View File

@ -42,7 +42,7 @@ def common_context(user: UserProfile) -> Dict[str, Any]:
have a request. have a request.
""" """
return { return {
"realm_uri": user.realm.url, "realm_url": user.realm.url,
"realm_name": user.realm.name, "realm_name": user.realm.name,
"root_domain_url": settings.ROOT_DOMAIN_URI, "root_domain_url": settings.ROOT_DOMAIN_URI,
"external_url_scheme": settings.EXTERNAL_URI_SCHEME, "external_url_scheme": settings.EXTERNAL_URI_SCHEME,

View File

@ -431,7 +431,7 @@ class ZulipPasswordResetForm(PasswordResetForm):
context = { context = {
"email": email, "email": email,
"realm_uri": realm.url, "realm_url": realm.url,
"realm_name": realm.name, "realm_name": realm.name,
} }

View File

@ -612,7 +612,7 @@ def send_custom_email(
context: Dict[str, object] = { context: Dict[str, object] = {
"realm": user_profile.realm, "realm": user_profile.realm,
"realm_string_id": user_profile.realm.string_id, "realm_string_id": user_profile.realm.string_id,
"realm_uri": user_profile.realm.url, "realm_url": user_profile.realm.url,
"realm_name": user_profile.realm.name, "realm_name": user_profile.realm.name,
} }
if add_context is not None: if add_context is not None:

View File

@ -62,7 +62,7 @@ class Command(ZulipBaseCommand):
context = { context = {
"email": user_profile.delivery_email, "email": user_profile.delivery_email,
"reset_url": generate_password_reset_url(user_profile, default_token_generator), "reset_url": generate_password_reset_url(user_profile, default_token_generator),
"realm_uri": user_profile.realm.url, "realm_url": user_profile.realm.url,
"realm_name": user_profile.realm.name, "realm_name": user_profile.realm.name,
"active_account_in_realm": True, "active_account_in_realm": True,
} }

View File

@ -1151,7 +1151,7 @@ class EmailUnsubscribeTests(ZulipTestCase):
# Enqueue a fake digest email. # Enqueue a fake digest email.
context = { context = {
"name": "", "name": "",
"realm_uri": "", "realm_url": "",
"unread_pms": [], "unread_pms": [],
"hot_conversations": [], "hot_conversations": [],
"new_users": [], "new_users": [],

View File

@ -168,7 +168,7 @@ def _deactivate_user_profile_backend(
from_address=FromAddress.NOREPLY, from_address=FromAddress.NOREPLY,
context={ context={
"deactivation_notification_comment": deactivation_notification_comment, "deactivation_notification_comment": deactivation_notification_comment,
"realm_uri": target.realm.url, "realm_url": target.realm.url,
"realm_name": target.realm.name, "realm_name": target.realm.name,
}, },
) )