I am currently working on language localization of Khan Academy, I have downloaded the source 8051 from Google Code . After survey information and viewing code online, the project is made using jinja2 as the templating language. I can use babel to accomplish my work.

With the following work, I can finally enable {%trans%} and {%endtrans%} tag parse-able by the template engine with following modification:

However, my translated template of *.mo and *.po (from pybabel) does not correctly translate tag within value in to destined language. I am thinking the babel integration should came from webapp2_extra.i18n.py, but I do not know how to enable it.

Are you recompiling the .mo and po. files with the gettext utilities? Sounds anyway that they have a system similar to Django for translations so you might as well check Django's documentation
–
LorenzoOct 21 '12 at 23:14