Browse Source

Fixed translations for message reactions

q-apps
Justin Ferrari 2 years ago
parent
commit
c6e98525cb
  1. 8
      qortal-ui-core/language/us.json
  2. 12
      qortal-ui-plugins/plugins/core/components/ChatScroller.js

8
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"
}
}
}

12
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}`
)
: "" }>
</vaadin-tooltip>

Loading…
Cancel
Save