1 # Translation files for WPIA motion tool
3 Add the needed translation files here.
5 The software is translated via Transifex: https://www.transifex.com/wpia/motion/.
7 The current files are also available in the motion-translations repository on our gitlab system https://git.ccs-baumann.de/wpia/motion-translations.
9 To extract the translation files use:
12 pybabel extract -F ./translations/babel.cfg -k _l -o ./translations/messages.pot --input-dirs=.
15 To create a language file use e.g. de
18 pybabel init -i ./translations/messages.pot -d translations -l de
21 The translation files are maintained in a repo and translated on Transifex [https://www.transifex.com/wpia/landingpage-1/dashboard/](https://www.transifex.com/wpia/landingpage-1/dashboard/).
23 The translation file are stored in this files structure translations/XX/LC_MESSAGES/messages.po with XX as language code.
25 To compile the translated text from *.po to *.mo use:
28 pybabel compile -f -d translations