Run install.sh
is a two letter language code, like es
for spanish.
$ pybabel init -i messages.pot -d translations -l <LANG>
[... put your translations in translations/<LANG>/LC_MESSAGES/messages.po ...]
$ pybabel compile -d translations
[... update translations/<LANG>/LC_MESSAGES/messages.po ...]
$ pybabel compile -d translations
$ make messages.pot
[... update translations/<LANG>/LC_MESSAGES/messages.po ...]
$ pybabel compile -d translations
- How do I install pybabel?
Run pip install -r requirements.txt
.
- How do I install pip?
Run easy_install pip
or apt-get install python-pip
.