forked from Github-Mirrors/canaille
23 lines
525 B
Markdown
23 lines
525 B
Markdown
Extract the messages with:
|
|
|
|
```
|
|
pybabel extract --mapping-file canaille/translations/babel.cfg --output-file canaille/translations/messages.pot canaille
|
|
```
|
|
|
|
Add a new language with:
|
|
|
|
```
|
|
pybabel init --input-file canaille/translations/messages.pot --output-dir canaille/translations --locale <LANG>
|
|
```
|
|
|
|
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
|
|
```
|