Fix localization

This commit is contained in:
Ilya Laktyushin 2024-09-05 19:12:45 +04:00
parent 5f27af924a
commit 3f73d4cc4e
2 changed files with 7 additions and 2 deletions

View File

@ -12934,3 +12934,8 @@ Sorry for the inconvenience.";
"Notification.StarsGiveawayResultsNoWinners" = "Due to the giveaway terms, no winners could be selected by Telegram, all stars were credited to channel administrators.";
"Notification.StarsGiveawayResultsNoWinners.Group" = "Due to the giveaway terms, no winners could be selected by Telegram, all stars were credited to group administrators.";
"Notification.StarsGiveaway.Title" = "Congratulations!";
"Notification.StarsGiveaway.Subtitle" = "You won a prize in a giveaway organized by **%1$@**.\n\nYour prize is **%2$@**.";
"Notification.StarsGiveaway.Subtitle.Stars_1" = "%@ Star";
"Notification.StarsGiveaway.Subtitle.Stars_any" = "%@ Stars";

View File

@ -280,8 +280,8 @@ public class ChatMessageGiftBubbleContentNode: ChatMessageBubbleContentNode {
if let channelId, let channel = item.message.peers[channelId] {
peerName = EnginePeer(channel).compactDisplayTitle
}
title = "Congratulations!" //""item.presentationData.strings.Notification_StarsGift_Title(Int32(count))
text = "You won a prize in a giveaway organized by **\(peerName)**.\n\nYour prize is **\(count) Stars**." //item.presentationData.strings.Notification_StarsGift_Subtitle
title = item.presentationData.strings.Notification_StarsGiveaway_Title
text = item.presentationData.strings.Notification_StarsGiveaway_Subtitle(peerName, item.presentationData.strings.Notification_StarsGiveaway_Subtitle_Stars(Int32(count))).string
case let .giftCode(_, fromGiveaway, unclaimed, channelId, monthsValue, _, _, _, _):
if channelId == nil {
months = monthsValue