From 8103b08ec0b1068e597d4b9ce74d8d90e443e81b Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Fri, 15 Nov 2024 00:52:38 +0400 Subject: [PATCH] Update localization --- Telegram/Telegram-iOS/en.lproj/Localizable.strings | 6 ++++++ submodules/GalleryUI/Sources/GalleryControllerNode.swift | 3 +-- .../Sources/TelegramBaseController.swift | 3 +-- .../Sources/GroupCallNavigationAccessoryPanel.swift | 3 +-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index aa08eb69ae..25bfd66847 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -13242,3 +13242,9 @@ Sorry for the inconvenience."; "PrivacySettings.ValueBotsPlus" = "Mini Apps +%@"; "PrivacySettings.CategoryBots" = "Mini Apps"; + +"MediaGallery.ToastVideoPip.Title" = "Video Minimized"; +"MediaGallery.ToastVideoPip.Text" = "Swipe down on a video to close it."; + +"Chat.ToastSubscribedToScheduledLiveStream.Text" = "You will be notified when the liver stream starts."; +"Chat.TitleVideochatPanel.NotifyScheduledButton" = "Notify Me"; diff --git a/submodules/GalleryUI/Sources/GalleryControllerNode.swift b/submodules/GalleryUI/Sources/GalleryControllerNode.swift index 97b4aa99d7..3553e7093c 100644 --- a/submodules/GalleryUI/Sources/GalleryControllerNode.swift +++ b/submodules/GalleryUI/Sources/GalleryControllerNode.swift @@ -477,10 +477,9 @@ open class GalleryControllerNode: ASDisplayNode, ASScrollViewDelegate, ASGesture if distanceFromEquilibrium > 1.0, let centralItemNode = self.pager.centralItemNode(), centralItemNode.maybePerformActionForSwipeDismiss() { if let chatController = self.baseNavigationController()?.topViewController as? ChatController { let presentationData = self.context.sharedContext.currentPresentationData.with({ $0 }) - //TODO:localize chatController.present(UndoOverlayController( presentationData: presentationData, - content: .hidArchive(title: "Video Minimized", text: "Swipe down on a video to close it.", undo: false), + content: .hidArchive(title: presentationData.strings.MediaGallery_ToastVideoPip_Title, text: presentationData.strings.MediaGallery_ToastVideoPip_Text, undo: false), elevatedLayout: false, action: { _ in true } ), in: .current) } diff --git a/submodules/TelegramBaseController/Sources/TelegramBaseController.swift b/submodules/TelegramBaseController/Sources/TelegramBaseController.swift index 3cddbb8300..3d1b8f1052 100644 --- a/submodules/TelegramBaseController/Sources/TelegramBaseController.swift +++ b/submodules/TelegramBaseController/Sources/TelegramBaseController.swift @@ -468,7 +468,6 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder { if groupCallPanelData.info.scheduleTimestamp != nil && !groupCallPanelData.info.subscribedToScheduled { let _ = self.context.engine.calls.toggleScheduledGroupCallSubscription(peerId: groupCallPanelData.peerId, callId: groupCallPanelData.info.id, accessHash: groupCallPanelData.info.accessHash, subscribe: true).startStandalone() - //TODO:localize let controller = UndoOverlayController( presentationData: presentationData, content: .universal( @@ -482,7 +481,7 @@ open class TelegramBaseController: ViewController, KeyShortcutResponder { "Line.Group 1.Stroke 1": UIColor.white ], title: nil, - text: "You will be notified when the liver stream starts.", + text: presentationData.strings.Chat_ToastSubscribedToScheduledLiveStream_Text, customUndoText: nil, timeout: nil ), diff --git a/submodules/TelegramCallsUI/Sources/GroupCallNavigationAccessoryPanel.swift b/submodules/TelegramCallsUI/Sources/GroupCallNavigationAccessoryPanel.swift index 025bd94e6e..28c9f40f9a 100644 --- a/submodules/TelegramCallsUI/Sources/GroupCallNavigationAccessoryPanel.swift +++ b/submodules/TelegramCallsUI/Sources/GroupCallNavigationAccessoryPanel.swift @@ -677,8 +677,7 @@ public final class GroupCallNavigationAccessoryPanel: ASDisplayNode { joinText = textForTimeout(value: elapsedTime).uppercased() } } else { - //TODO:localize - joinText = "Notify Me" + joinText = strings.Chat_TitleVideochatPanel_NotifyScheduledButton } if self.updateTimer == nil {