Update localization

This commit is contained in:
Isaac 2025-10-02 00:48:42 +08:00
parent c02ef75c55
commit 70be4f840f
8 changed files with 16 additions and 2332 deletions

View File

@ -15150,3 +15150,10 @@ Error: %8$@";
"ProfileColorSetup.BrowseGiftsForPurchase" = "Browse gifts available for purchase >";
"VoiceChat.RemovedConferencePeerText" = "You removed %@ from this call. They will no longer be able to join using the invite link.";
"Chat.MessageHeaderBotNewThread" = "New Thread";
"Chat.MessageContinueLastThread" = "Continue Last Thread";
"Chat.NewThreadInfo.Title" = "New Thread";
"Chat.NewThreadInfo.Text" = "Type any message to\ncreate a new thread.";
"Chat.InlineTopicMenu.NewForumThreadTab" = "New Chat";
"Chat.GenericForuThreadStatus" = "thread";

View File

@ -2887,7 +2887,6 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
),
]
//TODO:localize
let (minWidth, buttonsLayout) = actionButtonsLayout(
item.context,
item.presentationData.theme,
@ -2897,7 +2896,7 @@ public class ChatMessageBubbleItemNode: ChatMessageItemView, ChatMessagePreviewI
ReplyMarkupMessageAttribute(
rows: [
ReplyMarkupRow(buttons: [
ReplyMarkupButton(title: "Continue last thread", titleWhenForwarded: nil, action: .callback(requiresPassword: false, data: button))
ReplyMarkupButton(title: item.presentationData.strings.Chat_MessageContinueLastThread, titleWhenForwarded: nil, action: .callback(requiresPassword: false, data: button))
])
],
flags: [],

View File

@ -347,9 +347,8 @@ public final class ChatMessageItemImpl: ChatMessageItem, CustomStringConvertible
headerDisplayPeer = ChatMessageDateHeader.HeaderData(contents: .thread(id: threadId, info: threadInfo))
} else if content.firstMessage.threadId == EngineMessage.newTopicThreadId {
headerSeparableThreadId = content.firstMessage.threadId
//TODO:localize
headerDisplayPeer = ChatMessageDateHeader.HeaderData(contents: .thread(id: threadId, info: Message.AssociatedThreadInfo(
title: "New Chat",
title: presentationData.strings.Chat_MessageHeaderBotNewThread,
icon: nil,
iconColor: 0,
isClosed: false

View File

@ -187,9 +187,8 @@ public final class ChatNewThreadInfoItemNode: ListViewItemNode, ASGestureRecogni
let constrainedWidth = params.width - (horizontalInset + horizontalContentInset) * 2.0
//TODO:localize
let titleString = "New Thread"
let subtitleString = "Type any message to\ncreate a new thread."
let titleString = item.presentationData.strings.Chat_NewThreadInfo_Title
let subtitleString = item.presentationData.strings.Chat_NewThreadInfo_Text
backgroundSize.height += iconBackgroundSize
backgroundSize.height += iconTextSpacing

View File

@ -1250,8 +1250,7 @@ public final class ChatSideTopicsPanel: Component {
let titleText: String
if case .botForum = component.kind {
//TODO:localize
titleText = "New Chat"
titleText = component.strings.Chat_InlineTopicMenu_NewForumThreadTab
} else {
titleText = component.strings.Chat_InlineTopicMenu_AllTab
}
@ -1388,8 +1387,7 @@ public final class ChatSideTopicsPanel: Component {
let titleText: String
if case .botForum = component.kind {
//TODO:localize
titleText = "New Chat"
titleText = component.strings.Chat_InlineTopicMenu_NewForumThreadTab
} else {
titleText = component.strings.Chat_InlineTopicMenu_AllTab
}

View File

@ -339,8 +339,7 @@ extension ChatControllerImpl {
var items: [ContextMenuItem] = []
//TODO:localize
items.append(.action(ContextMenuActionItem(text: "Open Profile", icon: { theme in
items.append(.action(ContextMenuActionItem(text: strings.Conversation_ContextMenuOpenProfile, icon: { theme in
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Info"), color: theme.contextMenu.primaryColor)
}, action: { [weak self] _, f in
f(.default)

View File

@ -1526,8 +1526,7 @@ extension ChatControllerImpl {
var customSubtitle: String?
if messageAndTopic.messageCount == 0, let peer = peerView.peers[peerView.peerId] as? TelegramUser {
if peer.isForum {
//TODO:localize
customSubtitle = "topic"
customSubtitle = strongSelf.presentationData.strings.Chat_GenericForuThreadStatus
}
}
@ -1550,8 +1549,7 @@ extension ChatControllerImpl {
}
strongSelf.state.infoAvatar = .emojiStatus(content: avatarContent, contextActionIsEnabled: infoContextActionIsEnabled)
} else if chatLocation.threadId == EngineMessage.newTopicThreadId {
//TODO:localize
strongSelf.state.chatTitleContent = .custom("New Chat", nil, false)
strongSelf.state.chatTitleContent = .custom(strongSelf.presentationData.strings.Chat_MessageHeaderBotNewThread, nil, false)
strongSelf.state.infoAvatar = nil
} else {
strongSelf.state.chatTitleContent = .replyThread(type: replyThreadType, count: count)