Repository navigation
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.
- Copy
Ui/Lang/En.ctoUi/Lang/<Symbol>.cand rename its table togLang<Symbol>. - Set
.Nameto the language's name in itself; that is what the Language screen shows. - Translate what you can. Keep every
{},{0}and{1}in each string, or its values go missing. - Add an entry to
LANG_LISTinUi/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.
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 shotsScreens are small, so keep strings close to the English length; long words may need a shorter wording.
Getting started
Linux
Help
Development
About