From 5178c582090451a8c0432552c6d8c02e39d95eb4 Mon Sep 17 00:00:00 2001 From: Vishnu KS Date: Fri, 26 Jun 2020 18:29:08 +0530 Subject: [PATCH] i18n: Mark notification bot message in do_create_realm for translation. --- zerver/lib/actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py index b776e2da20..984f3dfd96 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)