mojira.dev
MC-313486

When using new languages added by resource pack, some text are always displayed in English(US)

Short description of the issue

languages newly added by a resource pack can no longer translate localization keys beginning with menu.custom_options and menu.custom_screen_info. In a custom new language, these strings are always displayed in English(US) (en_us) instead of using the resource pack's translations. This restriction should apply only to resource packs attempting to replace these keys for built-in languages, not to newly added languages. Alternatively, if translations for these keys must always be rejected, the game should provide a way to make them display another close built-in language instead of forcing en_us.

Steps to reproduce the issue

  1. Launch the Game.

  2. Create a resource pack containing a new language file at assets/minecraft/lang/xx_xx.json using a language code that is not shipped with vanilla Minecraft.

  3. In that file, add translations for keys beginning with menu.custom_options and menu.custom_screen_info (for example, menu.custom_options.title and menu.custom_screen_info.contents), along with the required language.name / language.region entries.

  4. Enable only this resource pack, then select the new language in Options > Language.

  5. Enter a world and use command /dialog show @s minecraft:custom_options or make a data pack that added dialogs shows in the game menu.

Expected result

The new language added by the resource pack should be able to translate keys beginning with menu.custom_options and menu.custom_screen_info, so those strings display in the selected custom language.

If the intended design is to prevent resource packs from replacing these keys for built-in languages, that restriction should not affect newly added languages. If these keys must always be rejected for resource-pack languages, there should be a supported fallback/override mechanism that allows them to display another close built-in language rather than always falling back to English(US) (en_us).

Actual result

Translations for keys beginning with menu.custom_options and menu.custom_screen_info in the newly added language are rejected. The affected strings remain displayed in English(US) (en_us) even when the custom language is selected.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

xzq123xzq456

(Unassigned)

Unconfirmed

26.4 Snapshot 10

Retrieved