diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 1bf76e5a2a..59dee5c2d8 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -14997,6 +14997,10 @@ Sorry for the inconvenience."; "Gift.View.Context.SetAsTheme" = "Set as Theme in..."; +"Notification.GiftStars" = "Gift for %@"; +"Notification.GiftStars.Stars_1" = "%@ Star"; +"Notification.GiftStars.Stars_any" = "%@ Stars"; + "Notification.PrepaidGiftUpgrade" = "Gift Upgrade for %@"; "Notification.PrepaidGiftUpgrade.Stars_1" = "%@ Star"; "Notification.PrepaidGiftUpgrade.Stars_any" = "%@ Stars"; diff --git a/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift b/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift index c375006deb..093ceb7e98 100644 --- a/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift +++ b/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift @@ -1176,6 +1176,9 @@ public func universalServiceMessageString(presentationData: (PresentationTheme, if isPrepaidUpgrade { let starsPrice = strings.Notification_PrepaidGiftUpgrade_Stars(Int32(clamping: upgradeStars ?? 0)) attributedString = NSAttributedString(string: strings.Notification_PrepaidGiftUpgrade(starsPrice).string, font: titleFont, textColor: primaryTextColor) + } else if case let .generic(gift) = gift { + let starsPrice = strings.Notification_GiftStars_Stars(Int32(clamping: gift.price)) + attributedString = NSAttributedString(string: strings.Notification_GiftStars(starsPrice).string, font: titleFont, textColor: primaryTextColor) } else { attributedString = NSAttributedString(string: strings.Notification_Gift, font: titleFont, textColor: primaryTextColor) }