f.strftime(T('%Y/%m/%d').xml()) Also, if you need to temporarily force T() to make translations immediately, I think you can do this:
T.lazy = False T('translate this') T.lazy = True Anthony On Sunday, October 30, 2011 1:42:18 AM UTC-4, viniciusban wrote: > > I'm trying to internationalize my date representations using: > db.my_table.date_field.represent = lambda f: f.strftime(T('%Y/%m/%d')) > > But unfortunatelly I'm getting this error: > TypeError: strftime() argument 1 must be string or read-only buffer, not > lazyT > > How can I do this? > > -- > Vinicius Assef. > >