diff --git a/submodules/TelegramUI/Components/Chat/ChatMessagePollBubbleContentNode/Sources/ChatMessagePollBubbleContentNode.swift b/submodules/TelegramUI/Components/Chat/ChatMessagePollBubbleContentNode/Sources/ChatMessagePollBubbleContentNode.swift index 6e87fb27b6..873a2a6dab 100644 --- a/submodules/TelegramUI/Components/Chat/ChatMessagePollBubbleContentNode/Sources/ChatMessagePollBubbleContentNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatMessagePollBubbleContentNode/Sources/ChatMessagePollBubbleContentNode.swift @@ -2924,7 +2924,9 @@ public class ChatMessagePollBubbleContentNode: ChatMessageBubbleContentNode { if !poll.countries.isEmpty { let locale = localeWithStrings(item.presentationData.strings) let countryNames = poll.countries.map { id in - if let countryName = locale.localizedString(forRegionCode: id) { + if id == "FT" { + return "Fragment" + } else if let countryName = locale.localizedString(forRegionCode: id) { return countryName } else { return id diff --git a/submodules/TelegramUI/Components/ComposePollScreen/Sources/ComposePollScreen.swift b/submodules/TelegramUI/Components/ComposePollScreen/Sources/ComposePollScreen.swift index c6f4d2a4f4..d7b6393f44 100644 --- a/submodules/TelegramUI/Components/ComposePollScreen/Sources/ComposePollScreen.swift +++ b/submodules/TelegramUI/Components/ComposePollScreen/Sources/ComposePollScreen.swift @@ -2396,7 +2396,11 @@ final class ComposePollScreenComponent: Component { if self.limitToCountries.count > 1 { value = environment.strings.CreatePoll_AllowedCountries_Countries(Int32(self.limitToCountries.count)) } else if self.limitToCountries.count == 1, let countryCode = self.limitToCountries.first { - value = self.currentLocale?.localizedString(forRegionCode: countryCode) ?? countryCode + if countryCode == "FT" { + value = "Fragment" + } else { + value = self.currentLocale?.localizedString(forRegionCode: countryCode) ?? countryCode + } } else { value = "" } diff --git a/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift b/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift index 769bd06411..4c8cda887a 100644 --- a/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift +++ b/submodules/TelegramUI/Components/ShareWithPeersScreen/Sources/CountriesMultiselectionScreen.swift @@ -1163,7 +1163,7 @@ public extension CountriesMultiselectionScreen { var currentSection: String? var currentCountries: [CountryItem] = [] for country in countries { - let section = String(country.0.1.prefix(1)) + let section = String(country.0.1.prefix(1)).uppercased() if currentSection != section { if let currentSection { sections.append((currentSection, currentCountries)) diff --git a/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift b/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift index e6a8b66608..ee3c2eeaee 100644 --- a/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift +++ b/submodules/TelegramUI/Sources/ChatInterfaceStateContextMenus.swift @@ -2310,7 +2310,9 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState if !poll.countries.isEmpty { let locale = localeWithStrings(chatPresentationInterfaceState.strings) let countryNames = poll.countries.map { id in - if let countryName = locale.localizedString(forRegionCode: id) { + if id == "FT" { + return "Fragment" + } else if let countryName = locale.localizedString(forRegionCode: id) { return countryName } else { return id