From 66ea2cd0c3ee7f94896b70ff58e6bf7a407184dc Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Fri, 28 Feb 2025 15:39:15 +0100 Subject: [PATCH] Update localization --- Telegram/Telegram-iOS/en.lproj/Localizable.strings | 4 ++++ .../GalleryUI/Sources/ChatItemGalleryFooterContentNode.swift | 3 +-- submodules/ShareController/Sources/ShareControllerNode.swift | 3 +-- .../Sources/AvatarUploadToastScreen.swift | 1 - .../ChatSendStarsScreen/Sources/ChatSendStarsScreen.swift | 3 +-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 3f867105ee..0838850213 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -13975,3 +13975,7 @@ Sorry for the inconvenience."; "Privacy.Review.Invite.Title" = "Invitation Settings"; "Privacy.Review.Invite.Text" = "You've restricted who can message you, but anyone can still invite you to groups and channels. Would you like to review these settings?"; + +"Conversation.VideoTimeLinkCopied" = "Link with start time at %@ copied to clipboard."; +"Share.VideoStartAt" = "Start at %@"; +"SendStarReactions.SubtitleFrom" = "from %@"; diff --git a/submodules/GalleryUI/Sources/ChatItemGalleryFooterContentNode.swift b/submodules/GalleryUI/Sources/ChatItemGalleryFooterContentNode.swift index c608ff148d..1a7f37f6f3 100644 --- a/submodules/GalleryUI/Sources/ChatItemGalleryFooterContentNode.swift +++ b/submodules/GalleryUI/Sources/ChatItemGalleryFooterContentNode.swift @@ -1755,7 +1755,6 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, ASScroll let presentationData = self.context.sharedContext.currentPresentationData.with { $0 } let text: String if let timestamp { - //TODO:localize let startTimeString: String let hours = timestamp / (60 * 60) let minutes = timestamp % (60 * 60) / 60 @@ -1765,7 +1764,7 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, ASScroll } else { startTimeString = String(format: "%d:%02d", minutes, seconds) } - text = "Link with start time at \(startTimeString) copied to clipboard." + text = presentationData.strings.Conversation_VideoTimeLinkCopied(startTimeString).string } else { text = presentationData.strings.Conversation_LinkCopied } diff --git a/submodules/ShareController/Sources/ShareControllerNode.swift b/submodules/ShareController/Sources/ShareControllerNode.swift index 3c71ca02d1..17b083c6eb 100644 --- a/submodules/ShareController/Sources/ShareControllerNode.swift +++ b/submodules/ShareController/Sources/ShareControllerNode.swift @@ -472,8 +472,7 @@ final class ShareControllerNode: ViewControllerTracingNode, ASScrollViewDelegate self.actionButtonNode.setBackgroundImage(highlightedHalfRoundedBackground, for: .highlighted) if let startAtTimestamp = mediaParameters?.startAtTimestamp { - //TODO:localize - self.startAtTimestampNode = ShareStartAtTimestampNode(titleText: "Start at \(textForTimeout(value: startAtTimestamp))", titleTextColor: self.presentationData.theme.actionSheet.secondaryTextColor, checkNodeTheme: CheckNodeTheme(backgroundColor: presentationData.theme.list.itemCheckColors.fillColor, strokeColor: presentationData.theme.list.itemCheckColors.foregroundColor, borderColor: presentationData.theme.list.itemCheckColors.strokeColor, overlayBorder: false, hasInset: false, hasShadow: false)) + self.startAtTimestampNode = ShareStartAtTimestampNode(titleText: self.presentationData.strings.Share_VideoStartAt(textForTimeout(value: startAtTimestamp)).string, titleTextColor: self.presentationData.theme.actionSheet.secondaryTextColor, checkNodeTheme: CheckNodeTheme(backgroundColor: presentationData.theme.list.itemCheckColors.fillColor, strokeColor: presentationData.theme.list.itemCheckColors.foregroundColor, borderColor: presentationData.theme.list.itemCheckColors.strokeColor, overlayBorder: false, hasInset: false, hasShadow: false)) } else { self.startAtTimestampNode = nil } diff --git a/submodules/TelegramUI/Components/AvatarUploadToastScreen/Sources/AvatarUploadToastScreen.swift b/submodules/TelegramUI/Components/AvatarUploadToastScreen/Sources/AvatarUploadToastScreen.swift index 00c1588cc6..b5cf3a95ab 100644 --- a/submodules/TelegramUI/Components/AvatarUploadToastScreen/Sources/AvatarUploadToastScreen.swift +++ b/submodules/TelegramUI/Components/AvatarUploadToastScreen/Sources/AvatarUploadToastScreen.swift @@ -264,7 +264,6 @@ private final class AvatarUploadToastScreenComponent: Component { containerSize: CGSize(width: availableContentSize.width - contentInsets.left - contentInsets.right - spacing - iconSize.width, height: availableContentSize.height) ) - //TODO:localize let contentSize = self.content.update( transition: transition, component: AnyComponent(AnimatedTextComponent( diff --git a/submodules/TelegramUI/Components/Chat/ChatSendStarsScreen/Sources/ChatSendStarsScreen.swift b/submodules/TelegramUI/Components/Chat/ChatSendStarsScreen/Sources/ChatSendStarsScreen.swift index 33a46dbca8..3f3e47ca50 100644 --- a/submodules/TelegramUI/Components/Chat/ChatSendStarsScreen/Sources/ChatSendStarsScreen.swift +++ b/submodules/TelegramUI/Components/Chat/ChatSendStarsScreen/Sources/ChatSendStarsScreen.swift @@ -1794,11 +1794,10 @@ private final class ChatSendStarsScreenComponent: Component { let titleSubtitleSpacing: CGFloat = 1.0 - //TODO:localize let subtitleSize = self.subtitle.update( transition: .immediate, component: AnyComponent(MultilineTextComponent( - text: .plain(NSAttributedString(string: "from \(currentMyPeer.compactDisplayTitle)", font: Font.regular(12.0), textColor: environment.theme.list.itemSecondaryTextColor)) + text: .plain(NSAttributedString(string: environment.strings.SendStarReactions_SubtitleFrom(currentMyPeer.compactDisplayTitle).string, font: Font.regular(12.0), textColor: environment.theme.list.itemSecondaryTextColor)) )), environment: {}, containerSize: CGSize(width: availableSize.width - leftButtonFrame.maxX * 2.0, height: 100.0)