Mojira Archive
MC-266603

Inconsistent translated messages in chat after language switch

In reference to the existing issue MC-212304 and MC-162441, it has been observed that translated messages in the chat do not update after a client language switch. However, there is inconsistency in the handling of messages containing hover events. When a translated message is used in conjunction with a hover event, the text in the hover event is updated after a language switch. This results in an inconsistent state where the message in the chat and the text in the hover event do not match.

Expected Behavior: The expected behavior should be either that translated messages in hover events have the same language as the translated message, or that translated messages in the chat update after a language switch. Currently, there is an inconsistent state that needs to be addressed to ensure a uniform and correct display.

Example Command: /tellraw @p {"translate":"advancements.adventure.kill_a_mob.title","hoverEvent":{"action":"show_text","contents":[

{"translate":"advancements.adventure.kill_a_mob.title"}

]}}

Steps to Reproduce:

  1. Execute the command.
  2. Change the client language to German.
  3. Hover over the message in the chat.

Behavior:

  • After Step 1: The text in the hover event corresponds to the same text as the message in the same language.
  • After Step 3: The text in the hover event is in German, while the text in the chat remains in the original language.

Won't Fix

Foorcee

2023-11-11, 10:33 AM

2023-11-24, 08:06 AM

2023-11-24, 08:06 AM

4

3

Community Consensus

Commands, Internationalisation

1.20.2

-