lutris/po/README.md
Stephan Lachnit 311eedc29b po: add script to update POTFILES
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-11-05 01:44:06 -08:00

1.2 KiB

i18n

Translations are not implemented yet, see github issue #728. Please read the notes 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, if the ninja commands fail, try to run ./po/generate-potfiles.sh
  • Languages can't be tested without installing Lutris via meson:
    rm -Rf builddir
    meson builddir --prefix=~/.local
    ninja install -C builddir
    
    rm -Rf builddir
    meson builddir --prefix=~/.local
    ninja install -C builddir
    env LANGUAGE=$LANG ~/.local/bin/lutris