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

@@ -324,13 +324,7 @@ extension ChatControllerImpl {
func beginDeleteMessagesWithUndo(messageIds: Set<MessageId>, type: InteractiveMessagesDeletionType) {
self.chatDisplayNode.historyNode.ignoreMessageIds = Set(messageIds)
//TODO:localize
let undoTitle: String
if messageIds.count == 1 {
undoTitle = "Message Deleted"
} else {
undoTitle = "\(messageIds.count) Messages Deleted"
}
let undoTitle = self.presentationData.strings.Chat_MessagesDeletedToast_Text(Int32(messageIds.count))
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 {
return false