lutris/po
tridoxx 695e9d66bb
Update es.po
The "enable discord rich presence for avalible games" line is modified, since "rich presence" was being translated, which is a proper English word "it would be like translating software like "facebook" which should not be done, it is also I add in parentheses information about what requires installing pypresence for it to work
2023-06-22 11:11:24 -05:00
..
ar.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
de.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
el.po fixed greek translation 2023-04-12 22:27:12 -07:00
es.po Update es.po 2023-06-22 11:11:24 -05:00
fi.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
fr.po Update french translation & POTFILES 2023-04-13 22:52:46 -07:00
generate-potfiles.sh i18n: update readme and POTFILES readability 2021-04-26 23:01:43 -07:00
hr.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
it.po Updated Italian translation 2023-04-27 22:50:50 +02:00
ko.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
LINGUAS Added italian translation 2023-04-27 20:29:09 +02:00
meson.build Merge branch 'master' into meson-minimum-version 2022-04-11 14:10:11 -07:00
nl.po Updated Dutch translation 2023-04-29 18:18:37 +02:00
POTFILES Updated Spanish translation 2023-06-02 14:18:56 +02:00
pt_BR.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
README.md (i18n) Add a separate subsection to explain how to update POTFILES 2022-09-26 19:58:06 -07:00
ru.po Update ru.po 2023-04-29 00:16:53 +03:00
tr.po tr language addons 2023-04-12 22:26:44 -07:00
zh_CN.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -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.

Update POTFILES

Before you start translating, you may want to update POTFILES, which contains a list of all source files that need to be translated.

If someone deletes or renames some file, it has to be updated, otherwise "No such file or directory" will throw.

Run the following command to update:

./po/generate-potfiles.sh

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