In model you can just do Tx=lambda *a: XML(str(T(*a))
and use Tx instead. On Jun 3, 10:51 pm, suiato <[email protected]> wrote: > When writing {{=XML(str(T(...)))}}} lines for translation here and > there, I realize it might be better to modify T(), wrapping the > current T() with XML(str()). It will be simpler in expression, and > won't break the compatibility, will it? Otherwise, you might end up > with typing lots of {{=XML(str(T(...)))}}} in the source code when > internationalizing. > > -- > Teru > > On 6ζ4ζ₯, εεΎ12:01, suiato <[email protected]> wrote: > > > 2009/06/04 11:16 mdipierro <[email protected]>: > > > > It can > > > > <li>{{=XML(str(T('Users can access the store <a href="%s">here</a>', > > > (request.application)))}}</li> > > > > Massimo > > > Wow, great! > > It worked after adding a paranthesis ) to close XML. (The correction > > was easy to make thanks to the friendly editor in web2py.) > > > Thanks a lot. > > > -- > > Teru > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

