mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix localization
This commit is contained in:
parent
10b0bdd301
commit
47526eee08
@ -65,22 +65,9 @@
|
|||||||
"PUSH_CHANNEL_MESSAGE_GEOLIVE" = "%1$@|posted a live location";
|
"PUSH_CHANNEL_MESSAGE_GEOLIVE" = "%1$@|posted a live location";
|
||||||
"PUSH_CHANNEL_MESSAGE_GIF" = "%1$@|posted a GIF";
|
"PUSH_CHANNEL_MESSAGE_GIF" = "%1$@|posted a GIF";
|
||||||
|
|
||||||
"PUSH_PINNED_TEXT" = "%1$@ pinned \"%2$@\" ";
|
|
||||||
"PUSH_PINNED_NOTEXT" = "%1$@ pinned a message";
|
|
||||||
"PUSH_PINNED_PHOTO" = "%1$@ pinned a photo";
|
|
||||||
"PUSH_PINNED_VIDEO" = "%1$@ pinned a video";
|
|
||||||
"PUSH_PINNED_ROUND" = "%1$@ pinned a video message";
|
|
||||||
"PUSH_PINNED_DOC" = "%1$@ pinned a file";
|
|
||||||
"PUSH_PINNED_STICKER" = "%1$@ pinned a %2$@sticker";
|
|
||||||
"PUSH_PINNED_AUDIO" = "%1$@ pinned a voice message";
|
|
||||||
"PUSH_PINNED_GEO" = "%1$@ pinned a map";
|
|
||||||
"PUSH_PINNED_GEOLIVE" = "%1$@ pinned a live location";
|
|
||||||
"PUSH_PINNED_GIF" = "%1$@ pinned a GIF";
|
|
||||||
|
|
||||||
"PUSH_MESSAGE_GAME" = "%1$@|invited you to play %2$@";
|
"PUSH_MESSAGE_GAME" = "%1$@|invited you to play %2$@";
|
||||||
"PUSH_CHANNEL_MESSAGE_GAME" = "%1$@|invited you to play %2$@";
|
"PUSH_CHANNEL_MESSAGE_GAME" = "%1$@|invited you to play %2$@";
|
||||||
"PUSH_CHAT_MESSAGE_GAME" = "%2$@|%1$@ invited the group to play %3$@";
|
"PUSH_CHAT_MESSAGE_GAME" = "%2$@|%1$@ invited the group to play %3$@";
|
||||||
"PUSH_PINNED_GAME" = "%1$@ pinned a game";
|
|
||||||
|
|
||||||
"PUSH_MESSAGE_TEXT" = "%1$@|%2$@";
|
"PUSH_MESSAGE_TEXT" = "%1$@|%2$@";
|
||||||
"PUSH_MESSAGE_NOTEXT" = "%1$@|sent you a message";
|
"PUSH_MESSAGE_NOTEXT" = "%1$@|sent you a message";
|
||||||
@ -1964,6 +1951,7 @@
|
|||||||
"Message.PinnedStickerMessage" = "pinned sticker";
|
"Message.PinnedStickerMessage" = "pinned sticker";
|
||||||
"Message.PinnedLocationMessage" = "pinned location";
|
"Message.PinnedLocationMessage" = "pinned location";
|
||||||
"Message.PinnedContactMessage" = "pinned contact";
|
"Message.PinnedContactMessage" = "pinned contact";
|
||||||
|
"Message.PinnedGenericMessage" = "%@ pinned a message";
|
||||||
|
|
||||||
"Notification.PinnedMessage" = "pinned message";
|
"Notification.PinnedMessage" = "pinned message";
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -217,7 +217,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
|
|||||||
}
|
}
|
||||||
let textWithRanges: (String, [(Int, NSRange)])
|
let textWithRanges: (String, [(Int, NSRange)])
|
||||||
if clippedText.isEmpty {
|
if clippedText.isEmpty {
|
||||||
textWithRanges = strings.PUSH_PINNED_NOTEXT(authorName)
|
textWithRanges = strings.Message_PinnedGenericMessage(authorName)
|
||||||
} else {
|
} else {
|
||||||
textWithRanges = strings.Notification_PinnedTextMessage(authorName, clippedText)
|
textWithRanges = strings.Notification_PinnedTextMessage(authorName, clippedText)
|
||||||
}
|
}
|
||||||
@ -250,7 +250,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
|
|||||||
attributedString = addAttributesToStringWithRanges(strings.Notification_PinnedQuizMessage(authorName), body: bodyAttributes, argumentAttributes: peerMentionsAttributes(primaryTextColor: primaryTextColor, peerIds: [(0, message.author?.id)]))
|
attributedString = addAttributesToStringWithRanges(strings.Notification_PinnedQuizMessage(authorName), body: bodyAttributes, argumentAttributes: peerMentionsAttributes(primaryTextColor: primaryTextColor, peerIds: [(0, message.author?.id)]))
|
||||||
}
|
}
|
||||||
case .deleted:
|
case .deleted:
|
||||||
attributedString = addAttributesToStringWithRanges(strings.PUSH_PINNED_NOTEXT(authorName), body: bodyAttributes, argumentAttributes: peerMentionsAttributes(primaryTextColor: primaryTextColor, peerIds: [(0, message.author?.id)]))
|
attributedString = addAttributesToStringWithRanges(strings.Message_PinnedGenericMessage(authorName), body: bodyAttributes, argumentAttributes: peerMentionsAttributes(primaryTextColor: primaryTextColor, peerIds: [(0, message.author?.id)]))
|
||||||
}
|
}
|
||||||
case .joinedByLink:
|
case .joinedByLink:
|
||||||
attributedString = addAttributesToStringWithRanges(strings.Notification_JoinedGroupByLink(authorName), body: bodyAttributes, argumentAttributes: peerMentionsAttributes(primaryTextColor: primaryTextColor, peerIds: [(0, message.author?.id)]))
|
attributedString = addAttributesToStringWithRanges(strings.Notification_JoinedGroupByLink(authorName), body: bodyAttributes, argumentAttributes: peerMentionsAttributes(primaryTextColor: primaryTextColor, peerIds: [(0, message.author?.id)]))
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user