Skip to content

Commit 66ea2cd

Browse files
author
Isaac
committed
Update localization
1 parent 16768ff commit 66ea2cd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Telegram/Telegram-iOS/en.lproj/Localizable.strings

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13975,3 +13975,7 @@ Sorry for the inconvenience.";
1397513975

1397613976
"Privacy.Review.Invite.Title" = "Invitation Settings";
1397713977
"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?";
13978+
13979+
"Conversation.VideoTimeLinkCopied" = "Link with start time at %@ copied to clipboard.";
13980+
"Share.VideoStartAt" = "Start at %@";
13981+
"SendStarReactions.SubtitleFrom" = "from %@";

submodules/GalleryUI/Sources/ChatItemGalleryFooterContentNode.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,6 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, ASScroll
17551755
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
17561756
let text: String
17571757
if let timestamp {
1758-
//TODO:localize
17591758
let startTimeString: String
17601759
let hours = timestamp / (60 * 60)
17611760
let minutes = timestamp % (60 * 60) / 60
@@ -1765,7 +1764,7 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, ASScroll
17651764
} else {
17661765
startTimeString = String(format: "%d:%02d", minutes, seconds)
17671766
}
1768-
text = "Link with start time at \(startTimeString) copied to clipboard."
1767+
text = presentationData.strings.Conversation_VideoTimeLinkCopied(startTimeString).string
17691768
} else {
17701769
text = presentationData.strings.Conversation_LinkCopied
17711770
}

submodules/ShareController/Sources/ShareControllerNode.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,7 @@ final class ShareControllerNode: ViewControllerTracingNode, ASScrollViewDelegate
472472
self.actionButtonNode.setBackgroundImage(highlightedHalfRoundedBackground, for: .highlighted)
473473

474474
if let startAtTimestamp = mediaParameters?.startAtTimestamp {
475-
//TODO:localize
476-
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))
475+
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))
477476
} else {
478477
self.startAtTimestampNode = nil
479478
}

submodules/TelegramUI/Components/AvatarUploadToastScreen/Sources/AvatarUploadToastScreen.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ private final class AvatarUploadToastScreenComponent: Component {
264264
containerSize: CGSize(width: availableContentSize.width - contentInsets.left - contentInsets.right - spacing - iconSize.width, height: availableContentSize.height)
265265
)
266266

267-
//TODO:localize
268267
let contentSize = self.content.update(
269268
transition: transition,
270269
component: AnyComponent(AnimatedTextComponent(

submodules/TelegramUI/Components/Chat/ChatSendStarsScreen/Sources/ChatSendStarsScreen.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,11 +1794,10 @@ private final class ChatSendStarsScreenComponent: Component {
17941794

17951795
let titleSubtitleSpacing: CGFloat = 1.0
17961796

1797-
//TODO:localize
17981797
let subtitleSize = self.subtitle.update(
17991798
transition: .immediate,
18001799
component: AnyComponent(MultilineTextComponent(
1801-
text: .plain(NSAttributedString(string: "from \(currentMyPeer.compactDisplayTitle)", font: Font.regular(12.0), textColor: environment.theme.list.itemSecondaryTextColor))
1800+
text: .plain(NSAttributedString(string: environment.strings.SendStarReactions_SubtitleFrom(currentMyPeer.compactDisplayTitle).string, font: Font.regular(12.0), textColor: environment.theme.list.itemSecondaryTextColor))
18021801
)),
18031802
environment: {},
18041803
containerSize: CGSize(width: availableSize.width - leftButtonFrame.maxX * 2.0, height: 100.0)

0 commit comments

Comments
 (0)