diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 3df82e28b0..38c3ab5315 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -3703,6 +3703,18 @@ Unused sets are archived when you add more."; "NotificationsSound.Pulse" = "Pulse"; "NotificationsSound.Synth" = "Synth"; +"NotificationsSound.Rebound" = "Rebound"; +"NotificationsSound.Antic" = "Antic"; +"NotificationsSound.Cheers" = "Cheers"; +"NotificationsSound.Droplet" = "Droplet"; +"NotificationsSound.Handoff" = "Handoff"; +"NotificationsSound.Milestone" = "Milestone"; +"NotificationsSound.Passage" = "Passage"; +"NotificationsSound.Portal" = "Portal"; +"NotificationsSound.Rattle" = "Rattle"; +"NotificationsSound.Slide" = "Slide"; +"NotificationsSound.Welcome" = "Welcome"; + "NotificationsSound.Tritone" = "Tri-tone"; "NotificationsSound.Tremolo" = "Tremolo"; "NotificationsSound.Alert" = "Alert"; @@ -9813,10 +9825,6 @@ Sorry for the inconvenience."; "Premium.Stories.Format.Title" = "Links and Formatting"; "Premium.Stories.Format.Text" = "Add links and formatting in captions to your stories."; -"Premium.MaxExpiringStoriesText" = "You can post **%@** stories in **24** hours. Subscribe to **Telegram Premium** to increase this limit to **%@**."; -"Premium.MaxExpiringStoriesNoPremiumText" = "You have reached the limit of **%@** stories per **24** hours."; -"Premium.MaxExpiringStoriesFinalText" = "You have reached the limit of **%@** stories per **24** hours."; - "Premium.MaxStoriesWeeklyText" = "You can post **%@** stories in a week. Upgrade to **Telegram Premium** to increase this limit to **%@**."; "Premium.MaxStoriesWeeklyNoPremiumText" = "You have reached the limit of **%@** stories per week."; "Premium.MaxStoriesWeeklyFinalText" = "You have reached the limit of **%@** stories per week."; @@ -13992,3 +14000,17 @@ Sorry for the inconvenience."; "Conversation.VideoTimeLinkCopied" = "Link with start time at %@ copied to clipboard."; "Share.VideoStartAt" = "Start at %@"; "SendStarReactions.SubtitleFrom" = "from %@"; + +"Premium.MaxExpiringStoriesTextNumberFormat_1" = "**%d** story"; +"Premium.MaxExpiringStoriesTextNumberFormat_any" = "**%d** stories"; +"Premium.MaxExpiringStoriesTextPremiumNumberFormat_1" = "**%d** story"; +"Premium.MaxExpiringStoriesTextPremiumNumberFormat_any" = "**%d** stories"; +"Premium.MaxExpiringStoriesTextFormat" = "You can post %@ in **24** hours. Subscribe to **Telegram Premium** to increase this limit to **%@**."; + +"Premium.MaxExpiringStoriesNoPremiumTextNumberFormat_1" = "**%d** story"; +"Premium.MaxExpiringStoriesNoPremiumTextNumberFormat_any" = "**%d** stories"; +"Premium.MaxExpiringStoriesNoPremiumTextFormat" = "You have reached the limit of %@ per **24** hours."; + +"Premium.MaxExpiringStoriesFinalTextNumberFormat_1" = "**%d** story"; +"Premium.MaxExpiringStoriesFinalTextNumberFormat_any" = "**%d** stories"; +"Premium.MaxExpiringStoriesFinalTextFormat" = "You have reached the limit of %@ stories per **24** hours."; diff --git a/submodules/PremiumUI/Sources/PremiumLimitScreen.swift b/submodules/PremiumUI/Sources/PremiumLimitScreen.swift index b2ab0fa0d4..a313b56cbc 100644 --- a/submodules/PremiumUI/Sources/PremiumLimitScreen.swift +++ b/submodules/PremiumUI/Sources/PremiumLimitScreen.swift @@ -1088,7 +1088,14 @@ private final class LimitSheetContent: CombinedComponent { let premiumLimit = state.premiumLimits.maxExpiringStoriesCount iconName = "Premium/Stories" badgeText = "\(limit)" - string = component.count >= premiumLimit ? strings.Premium_MaxExpiringStoriesFinalText("\(premiumLimit)").string : strings.Premium_MaxExpiringStoriesText("\(limit)", "\(premiumLimit)").string + if component.count >= premiumLimit { + let limitNumberString = strings.Premium_MaxExpiringStoriesFinalTextNumberFormat(Int32(premiumLimit)) + string = strings.Premium_MaxExpiringStoriesFinalTextFormat(limitNumberString).string + } else { + let limitNumberString = strings.Premium_MaxExpiringStoriesTextNumberFormat(Int32(limit)) + let premiumLimitNumberString = strings.Premium_MaxExpiringStoriesTextPremiumNumberFormat(Int32(premiumLimit)) + string = strings.Premium_MaxExpiringStoriesTextFormat(limitNumberString, premiumLimitNumberString).string + } defaultValue = "" premiumValue = component.count >= premiumLimit ? "" : "\(premiumLimit)" badgePosition = max(0.32, CGFloat(component.count) / CGFloat(premiumLimit)) @@ -1096,7 +1103,8 @@ private final class LimitSheetContent: CombinedComponent { if isPremiumDisabled { badgeText = "\(limit)" - string = strings.Premium_MaxExpiringStoriesNoPremiumText("\(limit)").string + let numberString = strings.Premium_MaxExpiringStoriesNoPremiumTextNumberFormat(Int32(limit)) + string = strings.Premium_MaxExpiringStoriesNoPremiumTextFormat(numberString).string } buttonAnimationName = nil case .storiesWeekly: