mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
i18n: update README
This commit is contained in:
parent
43f872555f
commit
59507ec412
11
po/README.md
11
po/README.md
|
@ -1,6 +1,6 @@
|
||||||
# i18n
|
# i18n
|
||||||
|
|
||||||
Translations are not implemented yet, see github issue #728. Please read the notes before opening a PR.
|
i18n build only works with the meson build system. See github issue #728 for more details.
|
||||||
|
|
||||||
## Updating a translations
|
## Updating a translations
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ meson transl-builddir
|
||||||
ninja build -C transl-builddir
|
ninja build -C transl-builddir
|
||||||
ninja lutris-update-po -C transl-builddir
|
ninja lutris-update-po -C transl-builddir
|
||||||
```
|
```
|
||||||
Now update the `$LANG.po` file, and run after that
|
Now edit the `$LANG.po` file, and run after that
|
||||||
```bash
|
```bash
|
||||||
ninja lutris-update-po -C transl-builddir
|
ninja lutris-update-po -C transl-builddir
|
||||||
rm -Rf transl-builddir
|
rm -Rf transl-builddir
|
||||||
|
@ -24,8 +24,9 @@ ninja build -C transl-builddir
|
||||||
ninja lutris-pot -C transl-builddir
|
ninja lutris-pot -C transl-builddir
|
||||||
mv po/lutris.pot po/$LANG.po
|
mv po/lutris.pot po/$LANG.po
|
||||||
```
|
```
|
||||||
Now edit the `$LANG.po` file, add `$LANG` to the `LINGUAS` file, and run after that
|
Now edit the `$LANG.po` file, and run after that
|
||||||
```bash
|
```bash
|
||||||
|
ninja build -C transl-builddir
|
||||||
ninja lutris-update-po -C transl-builddir
|
ninja lutris-update-po -C transl-builddir
|
||||||
rm -Rf transl-builddir
|
rm -Rf transl-builddir
|
||||||
```
|
```
|
||||||
|
@ -34,8 +35,8 @@ and commit your changes.
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- Only commit changes for the translation file you actually edited.
|
- Only commit changes for the translation file you actually edited.
|
||||||
- Ignore the first four lines in the `$LANG.po` files.
|
- Ignore or delete the first four lines (copyright notice) in the `$LANG.po` files.
|
||||||
- Keep the `LINGUAS` file sorted alphabetically.
|
- The `LINGUAS` and `POTFILES` updated by the `ninja build -C transl-builddir` command. You don't need to edit them manually.
|
||||||
- Languages can't be tested without installing Lutris via meson:
|
- Languages can't be tested without installing Lutris via meson:
|
||||||
```bash
|
```bash
|
||||||
rm -Rf transl-builddir
|
rm -Rf transl-builddir
|
||||||
|
|
Loading…
Reference in a new issue