mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
email_notifications: Fix missing translation tags on sender.
This commit is contained in:
@@ -4,6 +4,8 @@ from zerver.lib.types import DisplayRecipientT
|
|||||||
from confirmation.models import one_click_unsubscribe_link
|
from confirmation.models import one_click_unsubscribe_link
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils.timezone import now as timezone_now
|
from django.utils.timezone import now as timezone_now
|
||||||
|
from django.utils.translation import override as override_language
|
||||||
|
from django.utils.translation import ugettext as _
|
||||||
from django.contrib.auth import get_backends
|
from django.contrib.auth import get_backends
|
||||||
|
|
||||||
from zerver.decorator import statsd_increment
|
from zerver.decorator import statsd_increment
|
||||||
@@ -414,7 +416,8 @@ def do_send_missedmessage_events_reply_in_zulip(user_profile: UserProfile,
|
|||||||
'show_message_content': True,
|
'show_message_content': True,
|
||||||
})
|
})
|
||||||
|
|
||||||
from_name = "Zulip missed messages" # type: str
|
with override_language(user_profile.default_language):
|
||||||
|
from_name = _("Zulip missed messages") # type: str
|
||||||
from_address = FromAddress.NOREPLY
|
from_address = FromAddress.NOREPLY
|
||||||
if len(senders) == 1 and settings.SEND_MISSED_MESSAGE_EMAILS_AS_USER:
|
if len(senders) == 1 and settings.SEND_MISSED_MESSAGE_EMAILS_AS_USER:
|
||||||
# If this setting is enabled, you can reply to the Zulip
|
# If this setting is enabled, you can reply to the Zulip
|
||||||
|
|||||||
Reference in New Issue
Block a user