mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	emails: Update text for confirm_new_email.
This commit is contained in:
		@@ -5,14 +5,17 @@
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
<p>{{ _('Hi!') }}
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans %}
 | 
			
		||||
    Hi {{ user_name }},
 | 
			
		||||
    {% endtrans %}
 | 
			
		||||
</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 }}. If you would like
 | 
			
		||||
    to confirm this change, please click below:
 | 
			
		||||
    {{ 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>
 | 
			
		||||
@@ -23,9 +26,4 @@
 | 
			
		||||
    <a href="mailto:{{ support_email }}">{{ support_email }}</a>.
 | 
			
		||||
    {% endtrans %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {{ _("Cheers,") }}<br />
 | 
			
		||||
    {{ _("Team Zulip") }}
 | 
			
		||||
</p>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,9 +1,11 @@
 | 
			
		||||
{{ _("Hi!") }}
 | 
			
		||||
{% trans %}
 | 
			
		||||
Hi {{ user_name }},
 | 
			
		||||
{% endtrans %}
 | 
			
		||||
 | 
			
		||||
{% trans %}
 | 
			
		||||
We received a request to change the email address for the Zulip account on
 | 
			
		||||
{{ realm_uri }} from {{ old_email }} to {{ new_email }}. If you would like
 | 
			
		||||
to confirm this change, please click below:
 | 
			
		||||
{{ realm_uri }} from {{ old_email }} to {{ new_email }}.
 | 
			
		||||
To confirm this change, please click below:
 | 
			
		||||
{% endtrans %}
 | 
			
		||||
{{ activate_url }}
 | 
			
		||||
 | 
			
		||||
@@ -11,6 +13,3 @@ to confirm this change, please click below:
 | 
			
		||||
If you did not request this change, please contact us immediately at
 | 
			
		||||
<{{ support_email }}>.
 | 
			
		||||
{% endtrans %}
 | 
			
		||||
 | 
			
		||||
{{ _("Cheers,") }}
 | 
			
		||||
{{ _("Team Zulip") }}
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@ class EmailTranslationTestCase(ZulipTestCase):
 | 
			
		||||
        def check_translation(phrase: str, request_type: str, *args: Any, **kwargs: Any) -> None:
 | 
			
		||||
            if request_type == "post":
 | 
			
		||||
                self.client_post(*args, **kwargs)
 | 
			
		||||
            elif request_type == "patch":
 | 
			
		||||
            elif request_type == "patch":  # nocoverage: see comment below
 | 
			
		||||
                self.client_patch(*args, **kwargs)
 | 
			
		||||
 | 
			
		||||
            email_message = mail.outbox[0]
 | 
			
		||||
@@ -42,7 +42,10 @@ class EmailTranslationTestCase(ZulipTestCase):
 | 
			
		||||
 | 
			
		||||
        self.login(hamlet.email)
 | 
			
		||||
 | 
			
		||||
        check_translation("Viele Grüße", "patch", "/json/settings", {"email": "hamlets-new@zulip.com"})
 | 
			
		||||
        # TODO: Uncomment and replace with translation once we have German translations for the strings
 | 
			
		||||
        # in confirm_new_email.txt.
 | 
			
		||||
        # Also remove the "nocoverage" from check_translation above.
 | 
			
		||||
        # check_translation("Viele Grüße", "patch", "/json/settings", {"email": "hamlets-new@zulip.com"})
 | 
			
		||||
        check_translation("Incrível!", "post", "/accounts/home/", {"email": "new-email@zulip.com"}, HTTP_ACCEPT_LANGUAGE="pt")
 | 
			
		||||
        check_translation("Danke, dass Du", "post", '/accounts/find/', {'emails': hamlet.email})
 | 
			
		||||
        check_translation("Hallo", "post", "/json/invites",  {"invitee_emails": "new-email@zulip.com", "stream": ["Denmark"]})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user