I am utterly confused with trying to use babel with flask for language translation.
Lets assume the following. A user has a preferance of spanish over english. I have a variable that marks this:
g.user.default_language='sp'
Lets say I have to messages, one on english and the other in spanish that I want to display. 'Please' vs 'por fovor'
<html>
<h1>INSERT TRANSLATION HERE</h1>
</html>
Here is my base babel config file
[python: **.py]
[jinja2: **/templates/**.html]
extensions=jinja2.ext.autoescape,jinja2.ext.with_
So, where does 'Please' go and how is it mapped to 'por fovor' if user pref is spanish?
Then, how to I call from a template based on language profile?
Thanks