mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
1.2 KiB
1.2 KiB
i18n
i18n build only works with the meson build system. See github issue #728 for more details.
Updating a translations
meson transl-builddir
ninja build -C transl-builddir
ninja lutris-update-po -C transl-builddir
Now edit 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, and run after that
ninja build -C transl-builddir
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 or delete the first four lines (copyright notice) in the
$LANG.po
files. - The
LINGUAS
andPOTFILES
updated by theninja build -C transl-builddir
command. You don't need to edit them manually. - 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