lutris/po
2022-04-11 14:14:35 -07:00
..
de.po Remove unnecessary execute permission on po/de.po 2022-02-23 14:12:53 -08:00
es.po Updated Spanish last translator 2022-04-11 14:14:35 -07:00
fi.po Update fi.po 2022-02-22 17:12:33 -08:00
fr.po Add French translation 2020-04-22 10:15:13 -07:00
generate-potfiles.sh i18n: update readme and POTFILES readability 2021-04-26 23:01:43 -07:00
hr.po Update Croatian language 2021-12-14 14:11:21 -08:00
ko.po Added Korean translation 2020-09-22 09:01:57 -07:00
LINGUAS Add Spanish translation 2021-08-02 15:37:29 -07:00
meson.build Merge branch 'master' into meson-minimum-version 2022-04-11 14:10:11 -07:00
nl.po Updated Dutch translation 2022-04-11 14:14:21 -07:00
POTFILES Remove keyring dependency 2022-04-11 13:59:56 -07:00
pt_BR.po Update pt_BR.po 2022-03-18 23:23:12 -03:00
README.md i18n doc: add a note about working directory 2021-12-13 15:21:47 -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 update Simplified Chinese translation for 0.5.10 2022-02-23 14:12:53 -08:00

i18n

Please read the notes below before opening a PR.

Note: All the commands below need to be run in the project root directory, not in the po directory. Otherwise you may get Not the project root error in meson.

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