emails: Update text for confirm_new_email.

This commit is contained in:
Rishi Gupta
2018-12-19 10:09:56 -08:00
committed by Tim Abbott
parent a65cb91cc1
commit c1d40e22a7
3 changed files with 16 additions and 16 deletions

View File

@@ -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"]})