2020-10-23 11:38:36 +00:00
|
|
|
Extract the messages with:
|
|
|
|
|
|
|
|
```
|
2020-11-16 14:39:58 +00:00
|
|
|
pybabel extract --mapping-file canaille/translations/babel.cfg --output-file canaille/translations/messages.pot canaille
|
2020-10-23 11:38:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Add a new language with:
|
|
|
|
|
|
|
|
```
|
2020-12-31 11:41:38 +00:00
|
|
|
pybabel init --input-file canaille/translations/messages.pot --output-dir canaille/translations --locale <LANG>
|
2020-10-23 11:38:36 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Update the catalogs with:
|
|
|
|
|
|
|
|
```
|
|
|
|
pybabel update --input-file canaille/translations/messages.pot --output-dir canaille/translations
|
|
|
|
```
|
|
|
|
|
|
|
|
Compile the catalogs with:
|
|
|
|
|
|
|
|
```
|
|
|
|
pybabel compile --directory canaille/translations
|
|
|
|
```
|