Skip to content

Translations

spycat88 edited this page Nov 17, 2026 · 1 revision

Translations

The menu is translated into eight languages, picked at run time with the Language setting:

Language File Symbol
English Ui/Lang/En.c En
Español Ui/Lang/Es.c Es
Français Ui/Lang/Fr.c Fr
Русский Ui/Lang/Ru.c Ru
Українська Ui/Lang/Uk.c Uk
日本語 Ui/Lang/Ja.c Ja
简体中文 Ui/Lang/ZhHans.c ZhHans
한국어 Ui/Lang/Ko.c Ko

English is the fallback: any string a language leaves out shows in English.

Adding a language

  1. Copy Ui/Lang/En.c to Ui/Lang/<Symbol>.c and rename its table to gLang<Symbol>.
  2. Set .Name to the language's name in itself; that is what the Language screen shows.
  3. Translate what you can. Keep every {}, {0} and {1} in each string, or its values go missing.
  4. Add an entry to LANG_LIST in Ui/Lang/Languages.h, where it should appear on the Language screen.

Nothing else changes. The build picks up the file, and the fonts take the characters they need from every file in Ui/Lang/: Montserrat for Latin, Greek and Cyrillic, Source Han Sans for everything else.

Never rename a symbol once it has shipped. The setting stores the symbol as text, so a device that saved the old one falls back to English.

Checking your translation

Render every screen in your language with the simulator (see Building#the-simulator) and check that nothing is cut off:

make sim
build/sim/openabl-menu-sim --lang <Symbol> --out shots

Screens are small, so keep strings close to the English length; long words may need a shorter wording.

Clone this wiki locally