lutris/po
2021-02-10 19:01:10 -08:00
..
de.po replace "Ausführungsmodul" mit "Starter" and improve some wording 2021-02-10 19:01:10 -08:00
fr.po Add French translation 2020-04-22 10:15:13 -07:00
generate-potfiles.sh po: add script to update POTFILES 2020-11-05 01:44:06 -08:00
hr.po po: remove unwanted copyright notice 2020-11-05 01:44:06 -08:00
ko.po Added Korean translation 2020-09-22 09:01:57 -07:00
LINGUAS Add German translation 2020-12-29 14:35:08 -08:00
meson.build Revert "i18n: automatically generate POTFILES and LINGUAS" 2020-06-18 19:11:32 -07:00
nl.po Updated Dutch translation 2020-11-27 15:44:32 -08:00
POTFILES po: add script to update POTFILES 2020-11-05 01:44:06 -08:00
pt_BR.po Add translator info 2020-10-03 04:52:28 -07:00
README.md po: add script to update POTFILES 2020-11-05 01:44:06 -08:00
ru.po Rename Joypad -> Gamepad. Improved russian translations 2020-11-30 14:15:27 -08:00
tr.po Update tr.po 2021-02-04 08:26:38 -08:00
zh_CN.po translate "Platform: %s" to zh_CN 2020-11-29 14:14:00 -08:00

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