signup: Do not translate signup messages sent to "Zulip internal" realm.

This commit is contained in:
sahil839 2021-06-16 15:34:22 +05:30 committed by Tim Abbott
parent e5221a8434
commit c42031bc05
1 changed files with 8 additions and 10 deletions

View File

@ -383,7 +383,6 @@ def notify_new_user(user_profile: UserProfile) -> None:
try:
# Check whether the stream exists
signups_stream = get_signups_stream(admin_realm)
with override_language(admin_realm.default_language):
# We intentionally use the same strings as above to avoid translation burden.
message = _("{user} just signed up for Zulip. (total: {user_count})").format(
user=f"{user_profile.full_name} <`{user_profile.email}`>", user_count=user_count
@ -4890,7 +4889,6 @@ def do_create_realm(
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: