On Nov 29, 11:19 pm, "Aaron Swartz" <[EMAIL PROTECTED]> wrote:
> $_('Message')
I added this line in my script, and use $_('Message') in template
file, it works:
web.template.Template.globals['_'] = gettext.gettext
Thanks Aaron. :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---
- [webpy] i18n support in template file? Bibby
- [webpy] Re: i18n support in template file? Aaron Swartz
- [webpy] Re: i18n support in template file? Zhang Huangbin
- [webpy] Re: i18n support in template file? Zhang Huangbin
- [webpy] Re: i18n support in template file? Zhang Huangbin
- [webpy] Re: i18n support in template file? andrei
- [webpy] Re: i18n support in template ... Zhang Huangbin
- [webpy] Re: i18n support in templ... andrei
- [webpy] Re: i18n support in t... andrei
- [webpy] Re: i18n support in t... Zhang Huangbin
- [webpy] Re: i18n support in t... Zhang Huangbin
- [webpy] Re: i18n support in t... andrei
- [webpy] Re: i18n support in t... Zhang Huangbin
