mirror of https://github.com/zulip/zulip.git
i18n: Tag push notification subtitles for translation.
This commit is contained in:
parent
0ed0bb6828
commit
c037ba49a0
|
@ -566,9 +566,9 @@ def get_apns_alert_subtitle(message: Message) -> str:
|
||||||
On an iOS notification, this is the second bolded line.
|
On an iOS notification, this is the second bolded line.
|
||||||
"""
|
"""
|
||||||
if message.trigger == "mentioned":
|
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":
|
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:
|
elif message.recipient.type == Recipient.PERSONAL:
|
||||||
return ""
|
return ""
|
||||||
# For group PMs, or regular messages to a stream, just use a colon to indicate this is the sender.
|
# For group PMs, or regular messages to a stream, just use a colon to indicate this is the sender.
|
||||||
|
|
Loading…
Reference in New Issue