]> WPIA git - motion.git/blob - translations/README.md
Merge branch 'admin_cleanup' into 'master'
[motion.git] / translations / README.md
1 # Translation files for WPIA motion tool
2
3 Add the needed translation files here.
4
5 The software is translated via Transifex: https://www.transifex.com/wpia/motion/.
6
7 The current files are also available in the motion-translations repository on our gitlab system https://git.ccs-baumann.de/wpia/motion-translations.
8
9 To extract the translation files use:
10
11 ```
12 pybabel extract -F ./translations/babel.cfg -k _l -o ./translations/messages.pot --input-dirs=.
13 ```
14
15 To create a language file use e.g. de
16
17 ```
18 pybabel init -i ./translations/messages.pot -d translations -l de
19 ```
20
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/).
22
23 The translation file are stored in this files structure translations/XX/LC_MESSAGES/messages.po with XX as language code.
24
25 To compile the translated text from *.po to *.mo use:
26
27 ```
28 pybabel compile -f -d translations
29 ```