Mojira Archive
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.

Awaiting Response

Hyperspacemaster

2016-03-28, 05:25 PM

2020-07-06, 09:50 PM

2020-07-06, 09:50 PM

5

6

Confirmed

Text

customized-world-settings, preset, superflat, translation

Minecraft 1.9 - 1.15Minecraft 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

-