lutris/po
2020-06-18 19:11:32 -07:00
..
autogen.sh i18n: automatically generate POTFILES and LINGUAS 2020-06-18 19:11:32 -07:00
fr.po Add French translation 2020-04-22 10:15:13 -07:00
meson.build i18n: automatically generate POTFILES and LINGUAS 2020-06-18 19:11:32 -07:00
README.md i18n: automatically generate POTFILES and LINGUAS 2020-06-18 19:11:32 -07:00
zh_CN.po i18n: Translate default values correctly; Update zh_CN translation for default values 2020-06-18 19:11:32 -07:00

i18n

Translations are not implemented yet, see github issue #728. Please read the notes before opening a PR.

Updating a translations

meson transl-builddir
ninja build -C transl-builddir
ninja lutris-update-po -C transl-builddir

Now update the $LANG.po file, and run after that

ninja lutris-update-po -C transl-builddir
rm -Rf transl-builddir

and commit your changes.

Creating a translation

meson transl-builddir
ninja build -C transl-builddir
ninja lutris-pot -C transl-builddir
mv po/lutris.pot po/$LANG.po

Now edit the $LANG.po file, add $LANG to the LINGUAS file, and run after that

ninja lutris-update-po -C transl-builddir
rm -Rf transl-builddir

and commit your changes.

Notes

  • Only commit changes for the translation file you actually edited.
  • Ignore the first four lines in the $LANG.po files.
  • Keep the LINGUAS file sorted alphabetically.
  • Languages can't be tested without installing Lutris via meson:
    rm -Rf transl-builddir
    meson transl-builddir --prefix=~/.local
    ninja build -C transl-builddir
    ninja install -C transl-builddir
    env LANGUAGE=$LANG ~/.local/bin/lutris