lutris/po/README.md

48 lines
1.1 KiB
Markdown
Raw Normal View History

# i18n
Translations are not implemented yet, see github issue #728. Please read the notes before opening a PR.
## Updating a translations
```bash
2020-05-24 18:33:04 +00:00
meson builddir
ninja lutris-update-po -C builddir
```
Now update the `$LANG.po` file, and run after that
```bash
2020-05-24 18:33:04 +00:00
ninja lutris-update-po -C builddir
rm -Rf builddir
```
and commit your changes.
## Creating a translation
```bash
2020-05-24 18:33:04 +00:00
meson builddir
ninja lutris-pot -C builddir
mv po/lutris.pot po/$LANG.po
```
Now edit the `$LANG.po` file, add `$LANG` to the `LINGUAS` file, and run after that
```bash
2020-05-24 18:33:04 +00:00
ninja lutris-update-po -C builddir
rm -Rf builddir
```
and commit your changes.
## Notes
- Only commit changes for the translation file you actually edited.
- Ignore or delete the first four lines (copyright notice) in the `$LANG.po` files.
- Keep the `LINGUAS` file sorted alphabetically.
- Languages can't be tested without installing Lutris via meson:
```bash
2020-07-12 11:46:25 +00:00
rm -Rf builddir
meson builddir --prefix=~/.local
ninja install -C builddir
2020-05-24 18:33:04 +00:00
rm -Rf builddir
meson builddir --prefix=~/.local
ninja install -C builddir
env LANGUAGE=$LANG ~/.local/bin/lutris
```