From c6e98525cbd5f440b31a9606ce6493c25233e8c4 Mon Sep 17 00:00:00 2001 From: Justin Ferrari <‘justinwesleyferrari@gmail.com’> Date: Fri, 27 Jan 2023 13:39:28 -0500 Subject: [PATCH] Fixed translations for message reactions --- qortal-ui-core/language/us.json | 8 ++++++-- .../plugins/core/components/ChatScroller.js | 12 ++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/qortal-ui-core/language/us.json b/qortal-ui-core/language/us.json index a8d0ab47..7ccf206a 100644 --- a/qortal-ui-core/language/us.json +++ b/qortal-ui-core/language/us.json @@ -574,7 +574,11 @@ "cchange65": "Please enter a recipient", "cchange66": "Cannot fetch replied-to message. Message is too old.", "cchange68": "edited", - "cchange69": "Auto-show images" + "cchange69": "Auto-show images", + "cchange71": "and", + "cchange72": "other", + "cchange73": "s", + "cchange74": "reacted with" }, "welcomepage": { "wcchange1": "Welcome to Q-Chat", @@ -882,4 +886,4 @@ "inf15": "Active Auto Buy Orders", "inf16": "Auto Buy" } -} +} \ No newline at end of file diff --git a/qortal-ui-plugins/plugins/core/components/ChatScroller.js b/qortal-ui-plugins/plugins/core/components/ChatScroller.js index 17e40e3f..eddcb8b6 100644 --- a/qortal-ui-plugins/plugins/core/components/ChatScroller.js +++ b/qortal-ui-plugins/plugins/core/components/ChatScroller.js @@ -720,7 +720,7 @@ class MessageTemplate extends LitElement { ${reaction.users[2].name ? reaction.users[2].name : cropAddress(reaction.users[2].address)} - and ${reaction.users.length - 3} other${(reaction.users.length - 3) > 1 ? "s" : ""} reacted with ${reaction.type}` + ${get("chatpage.cchange71")} ${reaction.users.length - 3} ${get("chatpage.cchange72")}${(reaction.users.length - 3) > 1 ? html`${get("chatpage.cchange73")}` : ""} ${get("chatpage.cchange74")} ${reaction.type}` ) : reaction.users.length === 3 ? ( `${reaction.users[0].name @@ -729,24 +729,24 @@ class MessageTemplate extends LitElement { ${reaction.users[1].name ? reaction.users[1].name : cropAddress(reaction.users[1].address)} - and + ${get("chatpage.cchange71")} ${reaction.users[2].name ? reaction.users[2].name - : cropAddress(reaction.users[2].address)} reacted with ${reaction.type}` + : cropAddress(reaction.users[2].address)} ${get("chatpage.cchange74")} ${reaction.type}` ) : reaction.users.length === 2 ? ( `${reaction.users[0].name ? reaction.users[0].name : cropAddress(reaction.users[0].address)} - and + ${get("chatpage.cchange71")} ${reaction.users[1].name ? reaction.users[1].name - : cropAddress(reaction.users[1].address)} reacted with ${reaction.type}` + : cropAddress(reaction.users[1].address)} ${get("chatpage.cchange74")} ${reaction.type}` ) : reaction.users.length === 1 ? ( `${reaction.users[0].name ? reaction.users[0].name - : cropAddress(reaction.users[0].address)} reacted with ${reaction.type}` + : cropAddress(reaction.users[0].address)} ${get("chatpage.cchange74")} ${reaction.type}` ) : "" }>