It works. Thanks, Fran !
2009/7/30 Fran <francisb...@googlemail.com> > > On Jul 30, 6:43 am, Alexandre Andrade <alexandrema...@gmail.com> > wrote: > > I can't find how translate the h2 title of auth pages, so I can't > > translate “register”, “login” and “retrieve password “ > > Look it is generated in code, note in layouts. > > It is in the view: user.html > > However it is not Internationalisable as-is: > <h2>{{=request.args(0).replace('_',' ').capitalize()}}</h2> > > I think this needs replacing with something like: > <h2> > {{if request.args(0)=='login':}} > {{=T('Login')}} > {{elif request.args(0)=='register':}} > {{=T('Register')}} > {{elif request.args(0)=='retrieve_password':}} > {{=T('Retrieve Password')}} > {{elif request.args(0)=='profile':}} > {{=T('Profile')}} > {{pass}} > </h2> > > F > > > -- Atenciosamente -- ========================= Alexandre Andrade Hipercenter.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---