From 12ecaf30df245a17093c2dfcef0ab6df07b8beee Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Tue, 22 Jun 2021 12:14:31 +0530 Subject: [PATCH] i18n --- src/TextForEvent.ts | 2 +- src/i18n/strings/en_EN.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TextForEvent.ts b/src/TextForEvent.ts index 70952eeca5..6975550154 100644 --- a/src/TextForEvent.ts +++ b/src/TextForEvent.ts @@ -241,7 +241,7 @@ function textForMessageEvent(ev: MatrixEvent): () => string | null { const senderDisplayName = ev.sender && ev.sender.name ? ev.sender.name : ev.getSender(); const isRedacted = ev.isRedacted(); let message = ev.getContent().body; - if (isRedacted) message = "Message Deleted"; + if (isRedacted) message = _t("Message Deleted"); else if (ev.getContent().msgtype === "m.emote") { message = "* " + senderDisplayName + " " + message; } else if (ev.getContent().msgtype === "m.image") { diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 71fbfd53e7..5c9c81dcfe 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -525,6 +525,7 @@ "%(senderDisplayName)s set the server ACLs for this room.": "%(senderDisplayName)s set the server ACLs for this room.", "%(senderDisplayName)s changed the server ACLs for this room.": "%(senderDisplayName)s changed the server ACLs for this room.", "🎉 All servers are banned from participating! This room can no longer be used.": "🎉 All servers are banned from participating! This room can no longer be used.", + "Message Deleted": "Message Deleted", "%(senderDisplayName)s sent an image.": "%(senderDisplayName)s sent an image.", "%(senderName)s set the main address for this room to %(address)s.": "%(senderName)s set the main address for this room to %(address)s.", "%(senderName)s removed the main address for this room.": "%(senderName)s removed the main address for this room.",