Files
..
2021-08-02 15:37:29 -07:00
2020-04-22 10:15:13 -07:00
2020-11-05 01:44:06 -08:00
2020-09-22 09:01:57 -07:00
2021-08-02 15:37:29 -07:00
2021-08-02 13:42:16 -07:00
2020-10-03 04:52:28 -07:00
2021-02-04 08:26:38 -08:00
2020-11-29 14:14:00 -08:00

i18n

Please read the notes below before opening a PR.

Updating a translations

meson builddir
ninja lutris-update-po -C builddir

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

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

and commit your changes.

Creating a translation

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

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

and commit your changes.

Notes

  • Only commit changes for the translation file you actually edited.
  • Delete the first five lines (copyright notice) in the $LANG.po files.
  • Keep the LINGUAS file sorted alphabetically.
  • The files to translate might change, run ./po/generate-potfiles.sh to check if there are changes in the files list. If that is the case, commit the change.
  • Languages can't be tested without installing Lutris via meson:
    rm -Rf builddir
    meson builddir --prefix=~/.local
    ninja install -C builddir
    env LANGUAGE=$LANG ~/.local/bin/lutris