Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-266603

Inconsistent translated messages in chat after language switch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.20.2
    • None
    • Community Consensus
    • Commands, Internationalisation

      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.

        1. after_lang_switch.png
          77 kB
          Foorcee
        2. before_lang_switch.png
          149 kB
          Foorcee

            Unassigned Unassigned
            Foorcee Foorcee
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: