try: from gluon import current
and current.T( 'Yes, I accept the Terms and Conditions * ') Regards, Martin 2016-04-05 12:31 GMT+02:00 'Annet' via web2py-users <[email protected] >: > I have a module containing text constants which I would like to translate. > > T( > > 'Yes, I accept the Terms and Conditions * ') > > When I save the module I get the following error flash: > > failed to reload module because; > name 'T' is not defined > > Is it possible to use T() in a module, if so, what files do I have to > import. > > > Kind regards, > > Annet > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

