1
0
mirror of https://github.com/lutris/lutris synced 2024-06-29 05:34:25 +00:00
lutris/po
Karachalios Stagkas Athanasios Nektarios 2ceb69d651 Updated Greek Translation
2024-04-09 13:51:40 -07:00
..
ar.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
de.po Update German translation 2023-08-05 16:08:50 +02:00
el.po Updated Greek Translation 2024-04-09 13:51:40 -07:00
es.po Updated Spanish translation 2023-12-17 11:20:27 +01:00
fi.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
fr.po Untranslate Ubisoft connect 2023-12-30 16:00:27 +01: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
ka.po po: Update Georgian translation 2023-10-27 11:58:43 -07:00
ko.po Completed Arabic translation and updated po files 2023-02-09 11:48:28 -08:00
LINGUAS Update LINGUAS 2023-12-11 16:18:48 -08: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
pl.po po: Add Polish translation 2023-12-11 16:18:48 -08:00
POTFILES Updated Spanish translation 2023-12-17 11:20:27 +01: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 Remove stray \n in tr.po 2023-10-07 19:29:28 -04: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