Skip to content

Add Japanese language to language switcher - #5024

Open
AokiMasaru wants to merge 1 commit into
Warzone2100:masterfrom
AokiMasaru:add-japanese-language
Open

AokiMasaru wants to merge 1 commit into
Warzone2100:masterfrom
AokiMasaru:add-japanese-language

Conversation

@AokiMasaru

Copy link
Copy Markdown

Add Japanese language switcher support

The Japanese translation (po/ja_JP.po) has existed in the repository
for some time, but Japanese was not yet registered as a selectable
language in the in-game language switcher / options menu.

This PR follows the same pattern as the existing Serbian language
addition (commit 67e7d0c) to register Japanese as a selectable UI
language.

Changes

  • lib/framework/i18n.cpp: Add LANG_NAME_JAPANESE and register
    ja_JP in both the Windows and Unix language maps
  • src/titleui/options/interfaceoptions.cpp: Map ja_JP to
    flag-JP.png in the language icon map
  • data/base/images/flags/flag-JP.png: New Japan flag icon
    (generated via tools/image/flags.sh, sourced from FlagKit)
  • data/base/images/flags.img: Register the new flag image
  • tools/image/flags.sh: Add JP to the flag generation list

Testing

  • Built successfully with no errors/warnings
  • Verified in-game: Japanese now appears in the language dropdown
    (Options → Interface → Language) with the correct flag icon, and
    switching to/from Japanese works correctly alongside other languages

@past-due past-due added this to the 4.8.0 milestone Aug 6, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants