Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add internationalization support #50

Open
gouthambs opened this issue Dec 2, 2015 · 1 comment
Open

Add internationalization support #50

gouthambs opened this issue Dec 2, 2015 · 1 comment

Comments

@gouthambs
Copy link
Owner

No description provided.

@slippers
Copy link
Contributor

slippers commented Jul 23, 2016

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

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants