Update localization

This commit is contained in:
Isaac 2024-06-17 21:16:22 +04:00
parent 7b18d52644
commit 47555ae97d
6 changed files with 13 additions and 22 deletions

View File

@ -12377,3 +12377,12 @@ Sorry for the inconvenience.";
"Story.Editor.TooltipLinkLimitValue_1" = "**%@** link"; "Story.Editor.TooltipLinkLimitValue_1" = "**%@** link";
"Story.Editor.TooltipLinkLimitValue_any" = "**%@** links"; "Story.Editor.TooltipLinkLimitValue_any" = "**%@** links";
"Story.Editor.TooltipReachedLinkLimitText" = "You can't add more than %@ to a story."; "Story.Editor.TooltipReachedLinkLimitText" = "You can't add more than %@ to a story.";
"VoiceChat.ToastMicrophoneIsMuted" = "Your microphone is muted.";
"StoryGridScreen.TitleLocationSearch" = "Location";
"StoryList.GridHeaderLocationSearch_1" = "1 STORY FROM THIS LOCATION";
"StoryList.GridHeaderLocationSearch_any" = "%d STORIES FROM THIS LOCATION";
"Chat.MessagesDeletedToast.Text_1" = "Message Deleted";
"Chat.MessagesDeletedToast.Text_any" = "%d Messages Deleted";

View File

@ -1931,7 +1931,6 @@ public final class ReactionContextNode: ASDisplayNode, ASScrollViewDelegate {
resultGroups[groupIndex].items.append(resultItem) resultGroups[groupIndex].items.append(resultItem)
} else { } else {
resultGroupIndexById[groupId] = resultGroups.count resultGroupIndexById[groupId] = resultGroups.count
//TODO:localize
resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem])) resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem]))
} }
} }
@ -2283,7 +2282,6 @@ public final class ReactionContextNode: ASDisplayNode, ASScrollViewDelegate {
resultGroups[groupIndex].items.append(resultItem) resultGroups[groupIndex].items.append(resultItem)
} else { } else {
resultGroupIndexById[groupId] = resultGroups.count resultGroupIndexById[groupId] = resultGroups.count
//TODO:localize
resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem])) resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem]))
} }
} }

View File

@ -2463,8 +2463,7 @@ public final class VoiceChatControllerImpl: ViewController, VoiceChatController
if lastTimestamp + 1000.0 < timestamp { if lastTimestamp + 1000.0 < timestamp {
lastTimestamp = timestamp lastTimestamp = timestamp
//TODO:localize self.presentUndoOverlay(content: .info(title: nil, text: self.presentationData.strings.VoiceChat_ToastMicrophoneIsMuted, timeout: nil, customUndoText: nil), action: { _ in
self.presentUndoOverlay(content: .info(title: nil, text: "Your microphone is muted.", timeout: nil, customUndoText: nil), action: { _ in
return false return false
}) })
} }

View File

@ -261,7 +261,6 @@ public final class StorySearchGridScreen: ViewControllerComponentContainer {
func updateTitle() { func updateTitle() {
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 } let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
let _ = presentationData
guard let componentView = self.node.hostView.componentView as? StorySearchGridScreenComponent.View, let paneNode = componentView.paneNode else { guard let componentView = self.node.hostView.componentView as? StorySearchGridScreenComponent.View, let paneNode = componentView.paneNode else {
return return
@ -274,12 +273,11 @@ public final class StorySearchGridScreen: ViewControllerComponentContainer {
} else { } else {
title = nil title = nil
} }
//TODO:localize
switch self.scope { switch self.scope {
case let .query(query): case let .query(query):
self.titleView?.titleContent = .custom("\(query)", title, false) self.titleView?.titleContent = .custom("\(query)", title, false)
case .location: case .location:
self.titleView?.titleContent = .custom("Location", nil, false) self.titleView?.titleContent = .custom(presentationData.strings.StoryGridScreen_TitleLocationSearch, nil, false)
} }
} }

View File

@ -1436,13 +1436,7 @@ private final class StorySearchHeaderComponent: Component {
let insets = UIEdgeInsets(top: 7.0, left: 16.0, bottom: 7.0, right: 16.0) let insets = UIEdgeInsets(top: 7.0, left: 16.0, bottom: 7.0, right: 16.0)
//TODO:localize let titleString = component.strings.StoryList_GridHeaderLocationSearch(Int32(component.count))
let titleString: String
if component.count == 1 {
titleString = "1 STORY FROM THIS LOCATION"
} else {
titleString = "\(component.count) STORIES FROM THIS LOCATION"
}
let titleSize = self.title.update( let titleSize = self.title.update(
transition: .immediate, transition: .immediate,
@ -1753,7 +1747,6 @@ public final class PeerInfoStoryPaneNode: ASDisplayNode, PeerInfoPaneNode, ASScr
return return
} }
//TODO:localize
var splitIndexIntoDays = true var splitIndexIntoDays = true
switch self.scope { switch self.scope {
case .peer: case .peer:

View File

@ -324,13 +324,7 @@ extension ChatControllerImpl {
func beginDeleteMessagesWithUndo(messageIds: Set<MessageId>, type: InteractiveMessagesDeletionType) { func beginDeleteMessagesWithUndo(messageIds: Set<MessageId>, type: InteractiveMessagesDeletionType) {
self.chatDisplayNode.historyNode.ignoreMessageIds = Set(messageIds) self.chatDisplayNode.historyNode.ignoreMessageIds = Set(messageIds)
//TODO:localize let undoTitle = self.presentationData.strings.Chat_MessagesDeletedToast_Text(Int32(messageIds.count))
let undoTitle: String
if messageIds.count == 1 {
undoTitle = "Message Deleted"
} else {
undoTitle = "\(messageIds.count) Messages Deleted"
}
self.present(UndoOverlayController(presentationData: self.context.sharedContext.currentPresentationData.with { $0 }, content: .removedChat(title: undoTitle, text: nil), elevatedLayout: false, position: .top, action: { [weak self] value in self.present(UndoOverlayController(presentationData: self.context.sharedContext.currentPresentationData.with { $0 }, content: .removedChat(title: undoTitle, text: nil), elevatedLayout: false, position: .top, action: { [weak self] value in
guard let self else { guard let self else {
return false return false