> Only works for Jinja2 right now, I gotta figure out how Mako does
Mako use ${ _('string') } in template file. :)
--
Best Regards.
Zhang Huangbin
- iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux & CentOS 5.x:
http://code.google.com/p/iredmail/
Read this cookbook i wrote for webpy before:
http://webpy.org/cookbook/i18n_support_in_template_file
I think just use these lines and mako i18n will work:
----
import gettext
lang = gettext.translation('messages', 'i18n', languages=['en_US'])
lang.install()
----
And in mako template file, just use ${ _('string') } should work fine.