mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
emails: Update text for confirm_new_email.
This commit is contained in:
@@ -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