Skip to content

Commit 70be4f8

Browse files
author
Isaac
committed
Update localization
1 parent c02ef75 commit 70be4f8

File tree

8 files changed

+16
-2332
lines changed

8 files changed

+16
-2332
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15150,3 +15150,10 @@ Error: %8$@";
1515015150
"ProfileColorSetup.BrowseGiftsForPurchase" = "Browse gifts available for purchase >";
1515115151

1515215152
"VoiceChat.RemovedConferencePeerText" = "You removed %@ from this call. They will no longer be able to join using the invite link.";
15153+
15154+
"Chat.MessageHeaderBotNewThread" = "New Thread";
15155+
"Chat.MessageContinueLastThread" = "Continue Last Thread";
15156+
"Chat.NewThreadInfo.Title" = "New Thread";
15157+
"Chat.NewThreadInfo.Text" = "Type any message to\ncreate a new thread.";
15158+
"Chat.InlineTopicMenu.NewForumThreadTab" = "New Chat";
15159+
"Chat.GenericForuThreadStatus" = "thread";

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2887,7 +2887,6 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
28872887
),
28882888
]
28892889

2890-
//TODO:localize
28912890
let (minWidth, buttonsLayout) = actionButtonsLayout(
28922891
item.context,
28932892
item.presentationData.theme,
@@ -2897,7 +2896,7 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
28972896
ReplyMarkupMessageAttribute(
28982897
rows: [
28992898
ReplyMarkupRow(buttons: [
2900-
ReplyMarkupButton(title: "Continue last thread", titleWhenForwarded: nil, action: .callback(requiresPassword: false, data: button))
2899+
ReplyMarkupButton(title: item.presentationData.strings.Chat_MessageContinueLastThread, titleWhenForwarded: nil, action: .callback(requiresPassword: false, data: button))
29012900
])
29022901
],
29032902
flags: [],

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,8 @@ public final class ChatMessageItemImpl: ChatMessageItem, CustomStringConvertible
347347
headerDisplayPeer = ChatMessageDateHeader.HeaderData(contents: .thread(id: threadId, info: threadInfo))
348348
} else if content.firstMessage.threadId == EngineMessage.newTopicThreadId {
349349
headerSeparableThreadId = content.firstMessage.threadId
350-
//TODO:localize
351350
headerDisplayPeer = ChatMessageDateHeader.HeaderData(contents: .thread(id: threadId, info: Message.AssociatedThreadInfo(
352-
title: "New Chat",
351+
title: presentationData.strings.Chat_MessageHeaderBotNewThread,
353352
icon: nil,
354353
iconColor: 0,
355354
isClosed: false

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ public final class ChatNewThreadInfoItemNode: ListViewItemNode, ASGestureRecogni
187187

188188
let constrainedWidth = params.width - (horizontalInset + horizontalContentInset) * 2.0
189189

190-
//TODO:localize
191-
let titleString = "New Thread"
192-
let subtitleString = "Type any message to\ncreate a new thread."
190+
let titleString = item.presentationData.strings.Chat_NewThreadInfo_Title
191+
let subtitleString = item.presentationData.strings.Chat_NewThreadInfo_Text
193192

194193
backgroundSize.height += iconBackgroundSize
195194
backgroundSize.height += iconTextSpacing

0 commit comments

Comments
 (0)