i18n: Tag push notification subtitles for translation.

This commit is contained in:
Tim Abbott 2019-08-26 15:02:04 -07:00
parent 0ed0bb6828
commit c037ba49a0
1 changed files with 2 additions and 2 deletions

View File

@ -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.