diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index d3c26358da..4a7d0d41da 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -9323,3 +9323,7 @@ Sorry for the inconvenience."; "Conversation.Theme.PreviewDarkShort" = "Tap to view this theme in the night mode."; "Conversation.Theme.PreviewLightShort" = "Tap to view this theme in the day mode."; + +"ChatList.EmptyListContactsHeader" = "YOUR CONTACTS ON TELEGRAM"; +"ChatList.EmptyListContactsHeaderHide" = "hide"; +"ChatList.EmptyListTooltip" = "Send a message or\nstart a group here."; diff --git a/submodules/ChatListUI/Sources/ChatListController.swift b/submodules/ChatListUI/Sources/ChatListController.swift index a571f13603..087002b3b6 100644 --- a/submodules/ChatListUI/Sources/ChatListController.swift +++ b/submodules/ChatListUI/Sources/ChatListController.swift @@ -2016,8 +2016,7 @@ public class ChatListControllerImpl: TelegramBaseController, ChatListController if let componentView = self.headerContentView.view as? ChatListHeaderComponent.View { if let rightButtonView = componentView.rightButtonView { let absoluteFrame = rightButtonView.convert(rightButtonView.bounds, to: self.view) - //TODO:localize - let text: String = "Send a message or\nstart a group here." + let text: String = self.presentationData.strings.ChatList_EmptyListTooltip let tooltipController = TooltipController(content: .text(text), baseFontSize: self.presentationData.listsFontSize.baseDisplaySize, timeout: 30.0, dismissByTapOutside: true, dismissImmediatelyOnLayoutUpdate: true, padding: 6.0, innerPadding: UIEdgeInsets(top: 2.0, left: 3.0, bottom: 2.0, right: 3.0)) self.present(tooltipController, in: .current, with: TooltipControllerPresentationArguments(sourceNodeAndRect: { [weak self] in diff --git a/submodules/ChatListUI/Sources/Node/ChatListEmptyInfoItem.swift b/submodules/ChatListUI/Sources/Node/ChatListEmptyInfoItem.swift index 78f28d1400..e7068be412 100644 --- a/submodules/ChatListUI/Sources/Node/ChatListEmptyInfoItem.swift +++ b/submodules/ChatListUI/Sources/Node/ChatListEmptyInfoItem.swift @@ -251,10 +251,9 @@ class ChatListSectionHeaderNode: ListViewItemNode { strongSelf.addSubnode(headerNode) } - //TODO:localize - headerNode.title = "YOUR CONTACTS ON TELEGRAM" + headerNode.title = item.strings.ChatList_EmptyListContactsHeader if item.hide != nil { - headerNode.action = "hide" + headerNode.action = item.strings.ChatList_EmptyListContactsHeaderHide headerNode.actionType = .generic headerNode.activateAction = { guard let self else {