i18n: Mark notification bot message in do_create_realm for translation.

This commit is contained in:
Vishnu KS 2020-06-26 18:29:08 +05:30 committed by Tim Abbott
parent d42515df1f
commit 5178c58209
1 changed files with 3 additions and 2 deletions

View File

@ -3692,10 +3692,11 @@ def do_create_realm(string_id: str, name: str,
"string_id": string_id, "string_id": string_id,
"emails_restricted_to_domains": emails_restricted_to_domains}) "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) sender = get_system_bot(settings.NOTIFICATION_BOT)
admin_realm = sender.realm admin_realm = sender.realm
# Send a notification to the admin realm
with override_language(admin_realm.default_language):
signup_message = _("Signups enabled")
try: try:
signups_stream = get_signups_stream(admin_realm) signups_stream = get_signups_stream(admin_realm)