Commit 75642b5f authored by colmoneill's avatar colmoneill

pybabel instructions as we don't commit compiled messages files

parent 76f4d1e7
......@@ -22,3 +22,17 @@ pip install git+
Mongod startup example for dev purposes:
`mongod --noauth --dbpath /home/colm/git/bemaker/eu.bemaker.flask/data/`
### Translations via flask Babel
— to extract all text and messages:
* `pybabel extract -F babel.cfg -o folder-destination/messages.pot .`
— create translations, the different languages:
* `pybabel -i messages.pot -d translations -l language`
* `pybabel -i messages.pot -d translations -l fr`
* `pybabel -i messages.pot -d translations -l nl`
— to copile:
* `pybabel compile -d parent-translations-folder`
* `pybabel compile -d translations`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment