mirror of https://github.com/zulip/zulip.git
signup: Do not translate signup messages sent to "Zulip internal" realm.
This commit is contained in:
parent
e5221a8434
commit
c42031bc05
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue