mirror of
https://github.com/zulip/zulip.git
synced 2025-10-30 19:43:47 +00:00
registration: Set the organization language at creation time.
In this commit, we add a new dropdown 'Organization language' on the `/new` and `/realm/register` pages. This dropdown allows setting the language of the organization during its creation. This allows messages from Welcome Bot and introductory messages in streams to be internationalized. Fixes a part of #25729.
This commit is contained in:
@@ -310,6 +310,7 @@ class TestGenerateRealmCreationLink(ZulipTestCase):
|
||||
"email": email,
|
||||
"realm_name": "Zulip test",
|
||||
"realm_type": Realm.ORG_TYPES["business"]["id"],
|
||||
"realm_default_language": "en",
|
||||
"realm_subdomain": "custom-test",
|
||||
},
|
||||
)
|
||||
@@ -337,12 +338,13 @@ class TestGenerateRealmCreationLink(ZulipTestCase):
|
||||
"email": email,
|
||||
"realm_name": realm_name,
|
||||
"realm_type": Realm.ORG_TYPES["business"]["id"],
|
||||
"realm_default_language": "en",
|
||||
"realm_subdomain": string_id,
|
||||
},
|
||||
)
|
||||
self.assertEqual(result.status_code, 302)
|
||||
self.assertEqual(
|
||||
f"/accounts/new/send_confirm/?email={urllib.parse.quote(email)}&realm_name={urllib.parse.quote_plus(realm_name)}&realm_type=10&realm_subdomain={string_id}",
|
||||
f"/accounts/new/send_confirm/?email={urllib.parse.quote(email)}&realm_name={urllib.parse.quote_plus(realm_name)}&realm_type=10&realm_default_language=en&realm_subdomain={string_id}",
|
||||
result["Location"],
|
||||
)
|
||||
result = self.client_get(result["Location"])
|
||||
|
||||
Reference in New Issue
Block a user