mojira.dev
MC-279060

Errors with certain translate strings when used in tellraw or title commands

Attempting to use commands to display certain translated text fail to properly translate. Currently this has been observed with translation keys for music disc tooltips and any keys involving banner patterns, but there is the possibility for others. As an example (assuming English), the key "item.minecraft.music_disc_otherside" correctly translates to "Music Disc" from a command, but the key "item.minecraft.music_disc_otherside.desc" fails to translate into "Lena Raine - otherside", instead outputing the raw translation key as the text command's output.

For banner pattern translate keys, commands using them fail to translate the keys specified with ".new" and ".desc", instead showcasing an outdated output with the more general translation key. The translation key of "item.minecraft.globe_banner_pattern" outputs with "Globe Banner Pattern", which is the en_us translation for the key "item.minecraft.globe_banner_pattern.new"

Steps to Reproduce:

1. Enter a world with commands enabled, and the language set to English (US).
2. Type the command `/title @s actionbar {"translate":"item.minecraft.music_disc_otherside"}`. Observe that the actionbar displayed shows "Music Disc", matching the translation in the language file `en_us.json`
3. Type the command `/title @s actionbar {"translate":"item.minecraft.music_disc_otherside.desc"}` .

Expected Result:

  • The action bar would display the text "Lena Raine - otherside".

    OBSERVED RESULT:

  • The action bar displays the text "item.minecraft.music_disc_otherside.desc".

Linked issues

Attachments

Comments 1

That key is deprecated, the correct key is "jukebox_song.minecraft.otherside" (see MC-278445)

miziragamez

(Unassigned)

Unconfirmed

(Unassigned)

1.21.4

Retrieved