Various fixes

This commit is contained in:
Ilya Laktyushin 2023-11-08 13:03:25 +04:00
parent d85b4493ff
commit 6a71c6ccad
2 changed files with 10 additions and 5 deletions

View File

@ -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";

View File

@ -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,