On Mar 31, 2008, at 12:48 AM, Olli Wang wrote:
> > Thanks, Dalius. It works. But I happened into another encoding issue: > > global_test = lazy_gettext(_('Global Test')) > > class HelloController(BaseController): > def test(self): > return str(global_test) # Works fine, returns the translated > string > > def test2(self): > return unicode(global_test) # It renders the following > traceback > > I've tried many ways to encode the string to unicode but failed. This > also causes my mako template down. Any suggestion? Thanks. > You want lazy_ugettext -- Philip Jenvey --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---