|
|
vor 1 Woche | |
|---|---|---|
| .. | ||
| README.md | vor 1 Monat | |
| de-glossary.md | vor 1 Woche | |
| es-glossary.md | vor 1 Monat | |
| fr-glossary.md | vor 1 Monat | |
| id-glossary.md | vor 1 Monat | |
| it-glossary.md | vor 1 Monat | |
| ja-glossary.md | vor 1 Monat | |
| ko-glossary.md | vor 1 Monat | |
| nl-glossary.md | vor 1 Monat | |
| pl-glossary.md | vor 1 Monat | |
| ru-glossary.md | vor 1 Monat | |
| tr-glossary.md | vor 1 Monat | |
| zh-Hans-glossary.md | vor 1 Monat | |
| zh-Hant-glossary.md | vor 1 Monat | |
LYNX SHARE's interface is written in English; every other language is a table in resources/i18n/<id>.txt
(JUCE LocalisedStrings format) embedded in the executable. Settings › General › Language lists them, each in
its own name; on the very first start LYNX SHARE uses the operating system's language when it has a table for it.
| id | Language | Glossary |
|---|---|---|
| pt-BR | Português (Brasil) | header of pt-BR.txt |
| es | Español | es-glossary.md |
| fr | Français | fr-glossary.md |
| de | Deutsch | de-glossary.md |
| it | Italiano | it-glossary.md |
| nl | Nederlands | nl-glossary.md |
| pl | Polski | pl-glossary.md |
| ru | Русский | ru-glossary.md |
| tr | Türkçe | tr-glossary.md |
| id | Bahasa Indonesia | id-glossary.md |
| ja | 日本語 | ja-glossary.md |
| ko | 한국어 | ko-glossary.md |
| zh-Hans | 简体中文 | zh-Hans-glossary.md |
| zh-Hant | 繁體中文 | zh-Hant-glossary.md |
The translations other than pt-BR are new in 0.1.20. If a term sounds wrong to producers in your language, please open an issue (Settings › General › Language has a link too) or send a pull request.
language: Deutsch
countries: de at ch li lu
"Open project" = "Projekt öffnen"
"Swing: {0}%" = "Swing: {0} %"
"English text" = "translation". Escapes: \n (line break), \t, \", \\.{0}, {1}… (they may move inside the sentence), every %, line breaks, and leading/trailing spaces.docs/i18n/<id>-glossary.md) so a term is the same everywhere; add new terms
to it.python3 tools/i18n_tool.py status # coverage of every language
python3 tools/i18n_tool.py lint de # placeholders, line breaks, % signs, missing keys
python3 tools/i18n_tool.py export de /tmp/de # the keys de still lacks, in chunks (with the pt-BR text as a hint)
# ... translate /tmp/de/src-NN.txt into /tmp/de/out-NN.txt (same "English" = "translation" lines) ...
python3 tools/i18n_tool.py check de /tmp/de # validates the chunks
python3 tools/i18n_tool.py merge de /tmp/de # merges them into resources/i18n/de.txt
python3 tools/make_i18n.py # embeds the tables (src/ui/i18n/<id>.h)
Try it: LYNX --lang de starts in that language for one run (Settings keeps the saved one), and
LYNX --lang de --snapshot shots/de writes off-screen pictures of the main windows to check that nothing is cut.
Wrap the English text in tr ("...") (or TR_NOOP for tables). The tests require a pt-BR translation of every
tr() string and every pt-BR key in all the other tables. When you can't translate a new string into all of
them, add its pt-BR line and run python3 tools/i18n_tool.py pending: it lists the keys the other tables still
lack in resources/i18n/pending.keys, which the tests accept (the text shows in English until it is translated).
resources/i18n/<id>.txt with the header (language: its own name, countries: ISO codes), every key of
pt-BR.txt translated, and docs/i18n/<id>-glossary.md.languages() (src/ui/I18n.cpp) and in LANGUAGES (tools/i18n_tool.py).LookAndFeel::applyLanguageFont
(src/ui/Theme.cpp).python3 tools/make_i18n.py, build, run the tests and the --snapshot pictures in the new language.