mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
44 lines
1.1 KiB
Markdown
44 lines
1.1 KiB
Markdown
|
# i18n
|
||
|
|
||
|
Translations are not implemented yet, see github issue #728. Please read the notes before opening a PR.
|
||
|
|
||
|
## Updating a translations
|
||
|
|
||
|
```bash
|
||
|
meson transl-builddir
|
||
|
ninja lutris-update-po -C transl-builddir
|
||
|
```
|
||
|
Now update the `$LANG.po` file, and run after that
|
||
|
```bash
|
||
|
ninja lutris-update-po -C transl-builddir
|
||
|
rm -Rf transl-builddir
|
||
|
```
|
||
|
and commit your changes.
|
||
|
|
||
|
## Creating a translation
|
||
|
|
||
|
```bash
|
||
|
meson transl-builddir
|
||
|
ninja lutris-pot -C transl-builddir
|
||
|
mv po/lutris.pot po/$LANG.po
|
||
|
```
|
||
|
Now edit the `$LANG.po` file, add `$LANG` to the `LINGUAS` file, and run after that
|
||
|
```bash
|
||
|
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 the first four lines in the `$LANG.po` files.
|
||
|
- Keep the `LINGUAS` file sorted alphabetically.
|
||
|
- Languages can't be tested without installing Lutris via meson:
|
||
|
```bash
|
||
|
rm -Rf transl-builddir
|
||
|
meson transl-builddir --prefix=~/.local
|
||
|
ninja install -C builddir
|
||
|
env LANGUAGE=$LANG ~/.local/bin/lutris
|
||
|
```
|