1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Update README.md

This commit is contained in:
OniriCorpe 2024-02-19 04:51:49 +01:00 committed by GitHub
parent 20a6120571
commit 0e34a00c1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,14 +37,17 @@ It's based on Flask-Babel : <https://python-babel.github.io>
```bash
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 .
# If working on a new locale : initialize it (in this example: fr)
# If working on a new locale: initialize it (in this example: fr)
pybabel init -i messages.pot -d translations -l fr
# Otherwise, update the existing .po:
pybabel update -i messages.pot -d translations
# ... translate stuff in translations/<lang>/LC_MESSAGES/messages.po
# re-run the 'update' command to let Babel properly format the text
# then compile:
pybabel compile -d translations
```