diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 74e5cd1115..d8a2c2cf51 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -12377,3 +12377,12 @@ Sorry for the inconvenience."; "Story.Editor.TooltipLinkLimitValue_1" = "**%@** link"; "Story.Editor.TooltipLinkLimitValue_any" = "**%@** links"; "Story.Editor.TooltipReachedLinkLimitText" = "You can't add more than %@ to a story."; + +"VoiceChat.ToastMicrophoneIsMuted" = "Your microphone is muted."; + +"StoryGridScreen.TitleLocationSearch" = "Location"; +"StoryList.GridHeaderLocationSearch_1" = "1 STORY FROM THIS LOCATION"; +"StoryList.GridHeaderLocationSearch_any" = "%d STORIES FROM THIS LOCATION"; + +"Chat.MessagesDeletedToast.Text_1" = "Message Deleted"; +"Chat.MessagesDeletedToast.Text_any" = "%d Messages Deleted"; diff --git a/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift b/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift index a944093f1e..e85083e41b 100644 --- a/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift +++ b/submodules/ReactionSelectionNode/Sources/ReactionContextNode.swift @@ -1931,7 +1931,6 @@ public final class ReactionContextNode: ASDisplayNode, ASScrollViewDelegate { resultGroups[groupIndex].items.append(resultItem) } else { resultGroupIndexById[groupId] = resultGroups.count - //TODO:localize resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem])) } } @@ -2283,7 +2282,6 @@ public final class ReactionContextNode: ASDisplayNode, ASScrollViewDelegate { resultGroups[groupIndex].items.append(resultItem) } else { resultGroupIndexById[groupId] = resultGroups.count - //TODO:localize resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem])) } } diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index 9bd0f391da..70154edc00 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -2463,8 +2463,7 @@ public final class VoiceChatControllerImpl: ViewController, VoiceChatController if lastTimestamp + 1000.0 < timestamp { lastTimestamp = timestamp - //TODO:localize - self.presentUndoOverlay(content: .info(title: nil, text: "Your microphone is muted.", timeout: nil, customUndoText: nil), action: { _ in + self.presentUndoOverlay(content: .info(title: nil, text: self.presentationData.strings.VoiceChat_ToastMicrophoneIsMuted, timeout: nil, customUndoText: nil), action: { _ in return false }) } diff --git a/submodules/TelegramUI/Components/PeerInfo/PeerInfoStoryGridScreen/Sources/StorySearchGridScreen.swift b/submodules/TelegramUI/Components/PeerInfo/PeerInfoStoryGridScreen/Sources/StorySearchGridScreen.swift index 7d8dcc4205..6bdc9c2581 100644 --- a/submodules/TelegramUI/Components/PeerInfo/PeerInfoStoryGridScreen/Sources/StorySearchGridScreen.swift +++ b/submodules/TelegramUI/Components/PeerInfo/PeerInfoStoryGridScreen/Sources/StorySearchGridScreen.swift @@ -261,7 +261,6 @@ public final class StorySearchGridScreen: ViewControllerComponentContainer { func updateTitle() { let presentationData = self.context.sharedContext.currentPresentationData.with { $0 } - let _ = presentationData guard let componentView = self.node.hostView.componentView as? StorySearchGridScreenComponent.View, let paneNode = componentView.paneNode else { return @@ -274,12 +273,11 @@ public final class StorySearchGridScreen: ViewControllerComponentContainer { } else { title = nil } - //TODO:localize switch self.scope { case let .query(query): self.titleView?.titleContent = .custom("\(query)", title, false) case .location: - self.titleView?.titleContent = .custom("Location", nil, false) + self.titleView?.titleContent = .custom(presentationData.strings.StoryGridScreen_TitleLocationSearch, nil, false) } } diff --git a/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift b/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift index eb93196820..10f80bed4d 100644 --- a/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift +++ b/submodules/TelegramUI/Components/PeerInfo/PeerInfoVisualMediaPaneNode/Sources/PeerInfoStoryPaneNode.swift @@ -1436,13 +1436,7 @@ private final class StorySearchHeaderComponent: Component { let insets = UIEdgeInsets(top: 7.0, left: 16.0, bottom: 7.0, right: 16.0) - //TODO:localize - let titleString: String - if component.count == 1 { - titleString = "1 STORY FROM THIS LOCATION" - } else { - titleString = "\(component.count) STORIES FROM THIS LOCATION" - } + let titleString = component.strings.StoryList_GridHeaderLocationSearch(Int32(component.count)) let titleSize = self.title.update( transition: .immediate, @@ -1753,7 +1747,6 @@ public final class PeerInfoStoryPaneNode: ASDisplayNode, PeerInfoPaneNode, ASScr return } - //TODO:localize var splitIndexIntoDays = true switch self.scope { case .peer: diff --git a/submodules/TelegramUI/Sources/ChatControllerAdminBanUsers.swift b/submodules/TelegramUI/Sources/ChatControllerAdminBanUsers.swift index e1e8b439f0..e9aa686373 100644 --- a/submodules/TelegramUI/Sources/ChatControllerAdminBanUsers.swift +++ b/submodules/TelegramUI/Sources/ChatControllerAdminBanUsers.swift @@ -324,13 +324,7 @@ extension ChatControllerImpl { func beginDeleteMessagesWithUndo(messageIds: Set, type: InteractiveMessagesDeletionType) { self.chatDisplayNode.historyNode.ignoreMessageIds = Set(messageIds) - //TODO:localize - let undoTitle: String - if messageIds.count == 1 { - undoTitle = "Message Deleted" - } else { - undoTitle = "\(messageIds.count) Messages Deleted" - } + let undoTitle = self.presentationData.strings.Chat_MessagesDeletedToast_Text(Int32(messageIds.count)) self.present(UndoOverlayController(presentationData: self.context.sharedContext.currentPresentationData.with { $0 }, content: .removedChat(title: undoTitle, text: nil), elevatedLayout: false, position: .top, action: { [weak self] value in guard let self else { return false