Home | Trees | Indices | Help |
|
---|
|
object --+ | translator
this class is instantiated once in gluon/main.py as the T object
:
T.force(None) # turns off translation T.force('fr, it') # forces web2py to translate using fr.py or it.py T("Hello World") # translates "Hello World" using the selected file
notice 1: there is no need to force since, by default, T uses accept_language to determine a translation file.
notice 2: en and en-en are considered different languages!
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Feb 3 10:53:20 2010 | http://epydoc.sourceforge.net |