Skip to content

Allow mods and games to provide translations for settings#16865

Draft
y5nw wants to merge 1 commit intoluanti-org:masterfrom
y5nw:mod-setting-l10n
Draft

Allow mods and games to provide translations for settings#16865
y5nw wants to merge 1 commit intoluanti-org:masterfrom
y5nw:mod-setting-l10n

Conversation

@y5nw
Copy link
Contributor

@y5nw y5nw commented Jan 21, 2026

Fixes #9070.

  • How does the PR work?
    The setting object now has optional information on the source of the setting. This can be used to find the mod that the setting belongs to. The translation domain is selected from the source mod; gettext is used otherwise if the source is not provided.
  • Does this relate to a goal in the roadmap?
    No.

To do

  • Support translations for mod settings.
  • Support translations for mod settings for mods within a modpack.
  • Support translations for game settings.
  • Allow translating setting names.
  • Allow translating setting descriptions.
  • Allow searching with translated strings.
  • Create test mod/game.

Out of scope: CSMs currently cannot provide their own translation files; settings from CSMs are therefore not translated.

How to test

TBD

@y5nw y5nw added @ Translation Feature ✨ PRs that add or enhance a feature Roadmap: supported by core dev PR not adhering to the roadmap, yet some core dev decided to take care of it labels Jan 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature ✨ PRs that add or enhance a feature Roadmap: supported by core dev PR not adhering to the roadmap, yet some core dev decided to take care of it @ Translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translate settingtypes.txt of mods and games

1 participant