Update README.md
This commit is contained in:
parent
20a6120571
commit
0e34a00c1f
@ -37,6 +37,8 @@ It's based on Flask-Babel : <https://python-babel.github.io>
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
|
# Extract the english sentences from the code, needed if you modified it
|
||||||
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .
|
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .
|
||||||
|
|
||||||
# If working on a new locale: initialize it (in this example: fr)
|
# If working on a new locale: initialize it (in this example: fr)
|
||||||
@ -45,6 +47,7 @@ pybabel init -i messages.pot -d translations -l fr
|
|||||||
pybabel update -i messages.pot -d translations
|
pybabel update -i messages.pot -d translations
|
||||||
|
|
||||||
# ... translate stuff in translations/<lang>/LC_MESSAGES/messages.po
|
# ... translate stuff in translations/<lang>/LC_MESSAGES/messages.po
|
||||||
|
# re-run the 'update' command to let Babel properly format the text
|
||||||
# then compile:
|
# then compile:
|
||||||
pybabel compile -d translations
|
pybabel compile -d translations
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user