mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 05:03:45 +00:00
Update localization
This commit is contained in:
parent
c02ef75c55
commit
70be4f840f
@ -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";
|
||||
|
||||
@ -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: [],
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user