2019-07-16 13:48:37 +02:00
|
|
|
i18n
|
|
|
|
====
|
|
|
|
|
2019-07-17 13:10:36 +02:00
|
|
|
This directory contains the translations of Tuhi
|
2019-07-16 13:48:37 +02:00
|
|
|
|
|
|
|
For errors in translations, please [file an
|
|
|
|
issue](https://github.com/tuhiproject/tuhi/issues/new).
|
|
|
|
|
|
|
|
New or updated translations are always welcome. To start a new translation, run:
|
|
|
|
|
|
|
|
$ meson translation-build
|
2019-07-17 13:10:36 +02:00
|
|
|
$ ninja -C translation-build tuhi-pot
|
2019-07-16 13:48:37 +02:00
|
|
|
# Now you can optionally remove the build directory
|
|
|
|
$ rm -rf translation-build
|
2019-07-17 13:10:36 +02:00
|
|
|
$ cp po/tuhi.pot po/$lang.po
|
2019-07-16 13:48:37 +02:00
|
|
|
|
|
|
|
where `$lang` is the language code of your target language, e.g. `nl` for Dutch
|
|
|
|
or `en_GB` for British English. Edit the
|
2019-07-17 13:10:36 +02:00
|
|
|
[LINGUAS](https://github.com/tuhiproject/tuhi/blob/master/tuhigui/po/LINGUAS) file and
|
2019-07-16 13:48:37 +02:00
|
|
|
add your language code, keeping the list sorted alphabetically. Finally, open
|
|
|
|
the `.po` file you just created and translate all the strings. Don't forget to
|
|
|
|
fill in the information in the header!
|
|
|
|
|
|
|
|
To update an existing translation, run:
|
|
|
|
|
|
|
|
$ meson translation-build
|
2019-07-17 13:10:36 +02:00
|
|
|
$ ninja -C translation-build tuhi-update-po
|
2019-07-16 13:48:37 +02:00
|
|
|
# Now you can optionally remove the build directory
|
|
|
|
$ rm -rf translation-build
|
|
|
|
|
|
|
|
and update the `po/$lang.po` file of your target language.
|
|
|
|
|
|
|
|
When you are done translating, file a pull request on
|
|
|
|
[GitHub](https://github.com/tuhiproject/tuhi) or, if you don't know how to, [open
|
|
|
|
an issue](https://github.com/tuhiproject/tuhi/issues/new) and attach the `.po`
|
|
|
|
file there.
|
|
|
|
|