Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

i18n: Mark notification bot message in do_create_realm for translation.

Vishnu KS5178c5820904
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index b776e2da200..984f3dfd96a 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -3692,10 +3692,11 @@ def do_create_realm(string_id: str, name: str,
"string_id": string_id,
"emails_restricted_to_domains": emails_restricted_to_domains})
- # Send a notification to the admin realm
- signup_message = "Signups enabled"
sender = get_system_bot(settings.NOTIFICATION_BOT)
admin_realm = sender.realm
+ # Send a notification to the admin realm
+ with override_language(admin_realm.default_language):
+ signup_message = _("Signups enabled")
try:
signups_stream = get_signups_stream(admin_realm)