diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 6134ed5f48..9afe3de581 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -10215,9 +10215,9 @@ Sorry for the inconvenience."; "ReassignBoost.ExpiresOn" = "Boost expires on %@"; "ReassignBoost.WaitForCooldown" = "Wait until the boost is available or get **%1$@** more boosts by gifting a **Telegram Premium** subscription."; -"ReassignBoost.Success" = "%1$@ are reassigned from %2$@."; -"ReassignBoost.Boosts_1" = "%@ boost"; -"ReassignBoost.Boosts_any" = "%@ boosts"; +"ReassignBoost.Success" = "%1$@ from %2$@."; +"ReassignBoost.Boosts_1" = "%@ boost is reassigned"; +"ReassignBoost.Boosts_any" = "%@ boosts are reassigned"; "ReassignBoost.OtherChannels_1" = "%@ other channel"; "ReassignBoost.OtherChannels_any" = "%@ other channels"; @@ -10433,6 +10433,10 @@ Sorry for the inconvenience."; "CountriesList.SaveCountries" = "Save Countries"; "CountriesList.SelectUpTo_1" = "select up to %@ country"; "CountriesList.SelectUpTo_any" = "select up to %@ countries"; +"CountriesList.Search" = "Search"; +"CountriesList.MaximumReached" = "You can select up to %@."; +"CountriesList.MaximumReached.Countries_1" = "%@ country"; +"CountriesList.MaximumReached.Countries_any" = "%@ countries"; "Message.GiveawayOngoing" = "Giveaway: %1$@ on %2$@"; "Message.GiveawayOngoing.Winners_1" = "%@ winner to be selected"; diff --git a/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift b/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift index db68431ac0..1559896c2f 100644 --- a/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift +++ b/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift @@ -468,7 +468,8 @@ final class CountriesMultiselectionScreenComponent: Component { self.hapticFeedback.error() let presentationData = component.context.sharedContext.currentPresentationData.with { $0 } - controller.present(UndoOverlayController(presentationData: presentationData, content: .info(title: nil, text: "You can select maximum \(limit) countries.", timeout: nil, customUndoText: nil), elevatedLayout: false, position: .bottom, animateInAsReplacement: false, action: { _ in return false }), in: .current) + let countriesValue = environment.strings.CountriesList_MaximumReached_Countries(limit) + controller.present(UndoOverlayController(presentationData: presentationData, content: .info(title: nil, text: environment.strings.CountriesList_MaximumReached(countriesValue).string, timeout: nil, customUndoText: nil), elevatedLayout: false, position: .bottom, animateInAsReplacement: false, action: { _ in return false }), in: .current) return } toggleCountry() @@ -721,7 +722,7 @@ final class CountriesMultiselectionScreenComponent: Component { )) } - let placeholder: String = "Search" + let placeholder: String = environment.strings.CountriesList_Search self.navigationTextField.parentState = state let navigationTextFieldSize = self.navigationTextField.update( transition: transition,