Files
piper/po/README.md
Jente Hidskes 4acede1397 Add support for translations
Based on earlier work by @whot:

44d8265d4a

Fixes #12.
2017-08-23 12:38:51 +10:00

37 lines
1.3 KiB
Markdown

i18n
====
This directory contains the translations of Piper.
For errors in translations, please [file an
issue](https://github.com/libratbag/piper/issues/new).
New or updated translations are always welcome. To start a new translation, run:
$ meson translation-build
$ ninja -C translation-build piper-pot
# Now you can optionally remove the build directory
$ rm -rf translation-build
$ cp po/piper.pot po/$lang.po
where `$lang` is the language code of your target language, e.g. `nl` for Dutch
or `en_GB` for British English. Edit the
[LINGUAS](https://github.com/libratbag/piper/blob/master/po/LINGUAS) file and
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
$ ninja -C translation-build piper-update-po
# 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/libratbag/piper) or, if you don't know how to, [open
an issue](https://github.com/libratbag/piper/issues/new) and attach the `.po`
file there.