diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 18d1574745..bb57aa4961 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -11311,3 +11311,7 @@ Sorry for the inconvenience."; "GroupBoost.Table.Group.VoiceToText" = "Voice-to-Text Conversion"; "GroupBoost.Table.Group.EmojiPack" = "Custom Emojipack"; +"ChannelBoost.Header.Boost" = "boost"; +"ChannelBoost.Header.Giveaway" = "giveaway"; +"ChannelBoost.Header.Features" = "features"; + diff --git a/submodules/ChatListUI/Sources/ChatListController.swift b/submodules/ChatListUI/Sources/ChatListController.swift index 7bf10600ba..7ac1f2f4a5 100644 --- a/submodules/ChatListUI/Sources/ChatListController.swift +++ b/submodules/ChatListUI/Sources/ChatListController.swift @@ -2905,14 +2905,17 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController }))) } else if case let .channel(channel) = peer { let openTitle: String + let openIcon: String switch channel.info { case .broadcast: openTitle = self.presentationData.strings.ChatList_ContextOpenChannel + openIcon = "Chat/Context Menu/Channels" case .group: openTitle = self.presentationData.strings.ChatList_ContextOpenGroup + openIcon = "Chat/Context Menu/Groups" } items.append(.action(ContextMenuActionItem(text: openTitle, icon: { theme in - return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Channels"), color: theme.contextMenu.primaryColor) + return generateTintedImage(image: UIImage(bundleImageName: openIcon), color: theme.contextMenu.primaryColor) }, action: { [weak self] c, _ in c.dismiss(completion: { guard let self else { diff --git a/submodules/StatisticsUI/Sources/BoostHeaderItem.swift b/submodules/StatisticsUI/Sources/BoostHeaderItem.swift index 722a0f0384..afa0504a35 100644 --- a/submodules/StatisticsUI/Sources/BoostHeaderItem.swift +++ b/submodules/StatisticsUI/Sources/BoostHeaderItem.swift @@ -399,7 +399,7 @@ private final class BoostHeaderComponent: CombinedComponent { content: AnyComponent( BoostButtonComponent( iconName: "Premium/Boosts/Boost", - title: "boost" + title: component.strings.ChannelBoost_Header_Boost ) ), effectAlignment: .center, @@ -419,7 +419,7 @@ private final class BoostHeaderComponent: CombinedComponent { content: AnyComponent( BoostButtonComponent( iconName: "Premium/Boosts/Giveaway", - title: "giveaway" + title: component.strings.ChannelBoost_Header_Giveaway ) ), effectAlignment: .center, @@ -439,7 +439,7 @@ private final class BoostHeaderComponent: CombinedComponent { content: AnyComponent( BoostButtonComponent( iconName: "Premium/Boosts/Features", - title: "features" + title: component.strings.ChannelBoost_Header_Features ) ), effectAlignment: .center,