| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
translator
this class is intantiated 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_langauge 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.0beta1 on Mon Mar 24 10:42:03 2008 | http://epydoc.sourceforge.net |