mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
* New hud/ability.ron file for ability localizations * i18n keys are created by adding .name and .desc to ability id. Because of how i18n worked (returning key if string wasn't found), it was impossible to do because it leads to UB in case string is missed. To solve this we've added get_opt method that returns None * New Localization::get_or method for convinient fallback key usage |
||
---|---|---|
.. | ||
ar_SA | ||
be_BY | ||
ca_CA | ||
cz_CZ | ||
de_DE | ||
en | ||
es_ES | ||
es_LA | ||
eu | ||
fr_FR | ||
hu_HU | ||
it_IT | ||
ja_JP | ||
nl_NL | ||
no_NB | ||
pl_PL | ||
pt_BR | ||
pt_PT | ||
ru_RU | ||
sr_SR | ||
sv_SE | ||
th_TH | ||
tr_TR | ||
uk_UA | ||
vi_VI | ||
zh_CN | ||
zh_TW | ||
README.md |
Translation document instructions
In order to keep localization documents readible please follow the following rules:
- Separate the string map sections using a commentary describing the purpose of the next section
- Prepend multi-line strings with a commentary
- Append one blank line after multi-line strings and two blank lines after sections
Adding a new language in Veloren
To add a new language in Veloren, please follow these steps:
- Create a new folder into the
assets/voxygen/i18n
directory - Copy the content of the
en
directory in your new folder - Configure the language metadata in the
_manifest.ron
file - From this point, you can start translating the files!