pybabel extends the python gettext module.
Flask-Babel extends this functionality into flask.
how it works:
add flask_babel to your app. then wrap the strings into a babel function call. finally run the pybabel to scan your app and create translation files.
areas of change for flask_blogging
views.py has some translatable strings in flash messages
static strings in the templates. this may be automatically gathered.
datetime stamps
what it will not do
translate the blog post.
other
what happens when flask_babel is applied multiple times to the app object. if flask_blogging is part of a larger web application that is already registering flask_babel then would there be an issue? maybe create a set of proxy functions that would call into babel if it is loaded on the app.
here is some research on this issue.
pybabel extends the python gettext module. Flask-Babel extends this functionality into flask.
how it works:
add flask_babel to your app. then wrap the strings into a babel function call. finally run the pybabel to scan your app and create translation files.
areas of change for flask_blogging
what it will not do
other
what happens when flask_babel is applied multiple times to the app object. if flask_blogging is part of a larger web application that is already registering flask_babel then would there be an issue? maybe create a set of proxy functions that would call into babel if it is loaded on the app.