The problem is that T cannot appear in web2py modules because they are imported before T is defined. T is a global variable defined after a request arrives.
What you need to do is customize Auth as described in http://www.web2py.com/examples/default/tools and add the Ts. Then you translated them in languages. Massimo On Apr 23, 4:00 pm, Álvaro Justen [Turicas] <[email protected]> wrote: > On Thu, Apr 23, 2009 at 5:52 PM, Álvaro Justen [Turicas] > > <[email protected]> wrote: > > So, I propose to change all 'default strings' to T('default strings'). > > Example, in gluon/*.py we have to change: > > gluon/tools.py: class Auth: all self.messages.* > > gluon/sqlhtml.py: class SQLFORM, def __init__: submit_button='Submit', > > delete_label='Check to delete:' > > gluon/valitadors.py: all self.error_message > > gluon/widget.py: some strings > > I can translate these new translation strings to pt_BR, if we have a > new release with all these T('...'). > > -- > Álvaro Justen > Peta5 - Telecomunicações e Software Livre > 21 3021-6001 / 9898-0141 > http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

