Skip to content

Commit 2a5d049

Browse files
author
Isaac
committed
Update localization
(cherry picked from commit d7a8f0d)
1 parent 11bf1f1 commit 2a5d049

File tree

2 files changed

+36
-6
lines changed

2 files changed

+36
-6
lines changed

Telegram/Telegram-iOS/en.lproj/Localizable.strings

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3703,6 +3703,18 @@ Unused sets are archived when you add more.";
37033703
"NotificationsSound.Pulse" = "Pulse";
37043704
"NotificationsSound.Synth" = "Synth";
37053705

3706+
"NotificationsSound.Rebound" = "Rebound";
3707+
"NotificationsSound.Antic" = "Antic";
3708+
"NotificationsSound.Cheers" = "Cheers";
3709+
"NotificationsSound.Droplet" = "Droplet";
3710+
"NotificationsSound.Handoff" = "Handoff";
3711+
"NotificationsSound.Milestone" = "Milestone";
3712+
"NotificationsSound.Passage" = "Passage";
3713+
"NotificationsSound.Portal" = "Portal";
3714+
"NotificationsSound.Rattle" = "Rattle";
3715+
"NotificationsSound.Slide" = "Slide";
3716+
"NotificationsSound.Welcome" = "Welcome";
3717+
37063718
"NotificationsSound.Tritone" = "Tri-tone";
37073719
"NotificationsSound.Tremolo" = "Tremolo";
37083720
"NotificationsSound.Alert" = "Alert";
@@ -9813,10 +9825,6 @@ Sorry for the inconvenience.";
98139825
"Premium.Stories.Format.Title" = "Links and Formatting";
98149826
"Premium.Stories.Format.Text" = "Add links and formatting in captions to your stories.";
98159827

9816-
"Premium.MaxExpiringStoriesText" = "You can post **%@** stories in **24** hours. Subscribe to **Telegram Premium** to increase this limit to **%@**.";
9817-
"Premium.MaxExpiringStoriesNoPremiumText" = "You have reached the limit of **%@** stories per **24** hours.";
9818-
"Premium.MaxExpiringStoriesFinalText" = "You have reached the limit of **%@** stories per **24** hours.";
9819-
98209828
"Premium.MaxStoriesWeeklyText" = "You can post **%@** stories in a week. Upgrade to **Telegram Premium** to increase this limit to **%@**.";
98219829
"Premium.MaxStoriesWeeklyNoPremiumText" = "You have reached the limit of **%@** stories per week.";
98229830
"Premium.MaxStoriesWeeklyFinalText" = "You have reached the limit of **%@** stories per week.";
@@ -13992,3 +14000,17 @@ Sorry for the inconvenience.";
1399214000
"Conversation.VideoTimeLinkCopied" = "Link with start time at %@ copied to clipboard.";
1399314001
"Share.VideoStartAt" = "Start at %@";
1399414002
"SendStarReactions.SubtitleFrom" = "from %@";
14003+
14004+
"Premium.MaxExpiringStoriesTextNumberFormat_1" = "**%d** story";
14005+
"Premium.MaxExpiringStoriesTextNumberFormat_any" = "**%d** stories";
14006+
"Premium.MaxExpiringStoriesTextPremiumNumberFormat_1" = "**%d** story";
14007+
"Premium.MaxExpiringStoriesTextPremiumNumberFormat_any" = "**%d** stories";
14008+
"Premium.MaxExpiringStoriesTextFormat" = "You can post %@ in **24** hours. Subscribe to **Telegram Premium** to increase this limit to **%@**.";
14009+
14010+
"Premium.MaxExpiringStoriesNoPremiumTextNumberFormat_1" = "**%d** story";
14011+
"Premium.MaxExpiringStoriesNoPremiumTextNumberFormat_any" = "**%d** stories";
14012+
"Premium.MaxExpiringStoriesNoPremiumTextFormat" = "You have reached the limit of %@ per **24** hours.";
14013+
14014+
"Premium.MaxExpiringStoriesFinalTextNumberFormat_1" = "**%d** story";
14015+
"Premium.MaxExpiringStoriesFinalTextNumberFormat_any" = "**%d** stories";
14016+
"Premium.MaxExpiringStoriesFinalTextFormat" = "You have reached the limit of %@ stories per **24** hours.";

submodules/PremiumUI/Sources/PremiumLimitScreen.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,15 +1088,23 @@ private final class LimitSheetContent: CombinedComponent {
10881088
let premiumLimit = state.premiumLimits.maxExpiringStoriesCount
10891089
iconName = "Premium/Stories"
10901090
badgeText = "\(limit)"
1091-
string = component.count >= premiumLimit ? strings.Premium_MaxExpiringStoriesFinalText("\(premiumLimit)").string : strings.Premium_MaxExpiringStoriesText("\(limit)", "\(premiumLimit)").string
1091+
if component.count >= premiumLimit {
1092+
let limitNumberString = strings.Premium_MaxExpiringStoriesFinalTextNumberFormat(Int32(premiumLimit))
1093+
string = strings.Premium_MaxExpiringStoriesFinalTextFormat(limitNumberString).string
1094+
} else {
1095+
let limitNumberString = strings.Premium_MaxExpiringStoriesTextNumberFormat(Int32(limit))
1096+
let premiumLimitNumberString = strings.Premium_MaxExpiringStoriesTextPremiumNumberFormat(Int32(premiumLimit))
1097+
string = strings.Premium_MaxExpiringStoriesTextFormat(limitNumberString, premiumLimitNumberString).string
1098+
}
10921099
defaultValue = ""
10931100
premiumValue = component.count >= premiumLimit ? "" : "\(premiumLimit)"
10941101
badgePosition = max(0.32, CGFloat(component.count) / CGFloat(premiumLimit))
10951102
badgeGraphPosition = badgePosition
10961103

10971104
if isPremiumDisabled {
10981105
badgeText = "\(limit)"
1099-
string = strings.Premium_MaxExpiringStoriesNoPremiumText("\(limit)").string
1106+
let numberString = strings.Premium_MaxExpiringStoriesNoPremiumTextNumberFormat(Int32(limit))
1107+
string = strings.Premium_MaxExpiringStoriesNoPremiumTextFormat(numberString).string
11001108
}
11011109
buttonAnimationName = nil
11021110
case .storiesWeekly:

0 commit comments

Comments
 (0)