I can think of other solutions but the one you propose seems the simplest one.
{{=XML(str(T("To <a href="%s">bla bla</a>",url)))}} On Jan 17, 9:03 pm, Tari <robert.t...@gmail.com> wrote: > Hello again, > > As I dive deeper and deeper into the (exciting) world of web2py, I > come to face increasingly tough challenges. I've searched and read the > discussions back and forth, yet could not find an acceptable solution > for my T() problem. > > Suppose you have to translate this entire expression, together with > the text A() renders: > > ("To ", A("Be", _href="..."), " or ", A("Not", _href="..."), " to Be") > > How would you set about it? > > Naturally, > > (T("To "), A(T("Be"), _href="..."), T(" or "), A(T("Not"), > _href="..."), T(" to Be")) > > is out of the question (word order, negation, etc.) > > The only way I can think of right now is to drop the A() helper and > write the whole text manually along with each <a> tag, then wrap it in > T(), and pray the links don't change... I really hope there is a less > painful way, both keeping the A() helper and translating the text in > its entirety. > > Thanks for the help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---