From c037ba49a0980070a8fb54b3d3acb0810a2ef028 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 26 Aug 2019 15:02:04 -0700 Subject: [PATCH] i18n: Tag push notification subtitles for translation. --- zerver/lib/push_notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.py index a9c6b5f4d6..2fd53c25d7 100644 --- a/zerver/lib/push_notifications.py +++ b/zerver/lib/push_notifications.py @@ -566,9 +566,9 @@ def get_apns_alert_subtitle(message: Message) -> str: On an iOS notification, this is the second bolded line. """ if message.trigger == "mentioned": - return message.sender.full_name + " mentioned you:" + return _("%(full_name)s mentioned you:") % dict(full_name=message.sender.full_name) elif message.trigger == "wildcard_mentioned": - return message.sender.full_name + " mentioned everyone:" + return _("%(full_name)s mentioned everyone:") % dict(full_name=message.sender.full_name) elif message.recipient.type == Recipient.PERSONAL: return "" # For group PMs, or regular messages to a stream, just use a colon to indicate this is the sender.