i18n with gettext

This commit is contained in:
2022-02-02 19:35:57 +01:00
parent 939c86dbe2
commit 9c28a41904
21 changed files with 686 additions and 437 deletions

View File

@@ -1,7 +1,6 @@
#!/bin/bash
echo "extract text from source files"
pyside6-lupdate *.py raven/*.py raven/plugins/*.py -recursive -ts messages_de.ts
find . -iname "*.py" | xargs /home/andi/bin/Python-3.10.0/Tools/i18n/pygettext.py -o locales/messages.pot
echo "write translation to qm file"
pyside6-lrelease messages_de.ts -qm translations/messages_de.qm
echo "edit with poedit"