Myers-Briggs Type Indicator Test(MBTI职业性格测试)
A website for doing the Myers-Briggs Type Indicator Test.
MBTI 职业性格测试
__ __ ____ _____ ___ _____ _____ ____ _____
| \/ | __ )_ _|_ _| |_ _| ____/ ___|_ _|
| |\/| | _ \ | | | |_____| | | _| \___ \ | |
| | | | |_) || | | |_____| | | |___ ___) || |
|_| |_|____/ |_| |___| |_| |_____|____/ |_|
# create your virtualenv then ...
virtualenv venv --python=python2.7
source venv/bin/activate
pip install -r requirements.txt
venv/bin/python server.py
https://wizardforcel.gitbooks.io/the-flask-mega-tutorial-2017-zh/content/docs/13.html
{{ _("text") }}
(Use %%
to escape %
.)pybabel extract -F babel.cfg -o messages.pot .
pybabel init -i messages.pot -d translations -l en
pybabel compile -d translations
修改多语言模板后更新翻译:
先用上面的命令重新生产 pot 文件,然后更新翻译: pybabel update -i messages.pot -d translations