diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index c81a6eba09..833f8d1122 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -8097,3 +8097,8 @@ Sorry for the inconvenience."; "Username.LinksOrderInfo" = "Drag and drop links to change the order in which they will be displayed on your info page."; "Profile.AdditionalUsernames" = "also %@"; + +"EmojiSearch.SearchReactionsPlaceholder" = "Search Reactions"; +"EmojiSearch.SearchReactionsEmptyResult" = "No emoji found"; +"EmojiSearch.SearchStatusesPlaceholder" = "Search Statuses"; +"EmojiSearch.SearchStatusesEmptyResult" = "No emoji found"; diff --git a/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift b/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift index 6a39b91f50..3ab528c5e6 100644 --- a/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift +++ b/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift @@ -453,9 +453,8 @@ public final class ReactionContextNode: ASDisplayNode, UIScrollViewDelegate { if strongSelf.stableEmptyResultEmoji == nil { strongSelf.stableEmptyResultEmoji = strongSelf.emptyResultEmojis.randomElement() } - //TODO:localize emptySearchResults = EmojiPagerContentComponent.EmptySearchResults( - text: "No emoji found", + text: strongSelf.presentationData.strings.EmojiSearch_SearchReactionsEmptyResult, iconFile: strongSelf.stableEmptyResultEmoji ) } else { diff --git a/submodules/TelegramUI/Components/EmojiStatusSelectionComponent/Sources/EmojiStatusSelectionComponent.swift b/submodules/TelegramUI/Components/EmojiStatusSelectionComponent/Sources/EmojiStatusSelectionComponent.swift index d53cc85789..678f914fae 100644 --- a/submodules/TelegramUI/Components/EmojiStatusSelectionComponent/Sources/EmojiStatusSelectionComponent.swift +++ b/submodules/TelegramUI/Components/EmojiStatusSelectionComponent/Sources/EmojiStatusSelectionComponent.swift @@ -358,9 +358,8 @@ public final class EmojiStatusSelectionController: ViewController { if strongSelf.stableEmptyResultEmoji == nil { strongSelf.stableEmptyResultEmoji = strongSelf.emptyResultEmojis.randomElement() } - //TODO:localize emptySearchResults = EmojiPagerContentComponent.EmptySearchResults( - text: "No emoji found", + text: strongSelf.presentationData.strings.EmojiSearch_SearchStatusesEmptyResult, iconFile: strongSelf.stableEmptyResultEmoji ) } else { diff --git a/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift b/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift index 93d62b4d5b..f547374e75 100644 --- a/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift +++ b/submodules/TelegramUI/Components/EntityKeyboard/Sources/EmojiPagerContentComponent.swift @@ -6790,9 +6790,9 @@ public final class EmojiPagerContentComponent: Component { var displaySearchWithPlaceholder: String? if isReactionSelection { - displaySearchWithPlaceholder = "Search Reactions" + displaySearchWithPlaceholder = strings.EmojiSearch_SearchReactionsPlaceholder } else if isStatusSelection { - displaySearchWithPlaceholder = "Search Statuses" + displaySearchWithPlaceholder = strings.EmojiSearch_SearchStatusesPlaceholder } return EmojiPagerContentComponent(