mojira.dev
MC-100197

World presets names don't change after having selected another language

The bug

Change your language and then try to create a new superflat world, when looking under presets you will see that the preset names are still displayed in the previously selected language. Only after a restart of Minecraft those strings display the correct translations.

How to reproduce

  1. Switch to any non en_us language

  2. Go to the superflat world screen, and then open the presets screen
    → Observe that the preset names are in that language

  3. Switch to en_us language

  4. Go to the superflat world screen, and then open the presets screen
    → Observe that the preset names are still in that language

  5. Restart Minecraft

  6. Go to the superflat world screen, and then open the presets screen
    → Observe that the preset names are in English now

This issue also affected the customized screen, which was removed in 1.13.

Cause

The preset names are added in a static block within GuiFlatPresets (and formerly GuiScreenCustomizePresets), but they are added with the name already translated (I18n.format is called within the static block). The name should be translated when the text is rendered, instead.

Linked issues

Attachments

Comments 7

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Can confirm for MC 1.12.1.

Confirmed for 1.13.1.

As long as the language is switched (including back to American English), if you go to that screen while in that language, the screen would be locked in that language. 

Fixed in 1.16.1 or earlier.

This ticket has temporarily been closed as Awaiting Response. Please comment if you're still experiencing this issue, otherwise it'll be resolved as fixed.

Hyperspacemaster

(Unassigned)

Confirmed

Text

customized-world-settings, preset, superflat, translation

Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.11, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.13.1, 1.15

Retrieved