Docs for T.force.im_self
Description
<class 'gluon.languages.translator'>
1. |
|
Attributes
T.force.im_self.__call__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
T.force.im_self.__class__ |
<type 'type'> extends (<type 'object'>,)
belongs to class <type 'type'>
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! |
T.force.im_self.__delattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__delattr__('name') <==> del x.name |
T.force.im_self.__dict__ |
<type 'dict'>
belongs to class <type 'dict'>
dict() -> new empty dictionary. dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs. dict(seq) -> new dictionary initialized as if via: d = {} for k, v in seq: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
T.force.im_self.__doc__ |
<type 'str'>
belongs to class <type 'str'>
str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object. |
T.force.im_self.__getattribute__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__getattribute__('name') <==> x.name |
T.force.im_self.__hash__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__hash__() <==> hash(x) |
T.force.im_self.__init__ |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
T.force.im_self.__module__ |
<type 'str'>
belongs to class <type 'str'>
str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object. |
T.force.im_self.__new__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T |
T.force.im_self.__reduce__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
T.force.im_self.__reduce_ex__ |
<type 'builtin_function_or_method'>
belongs to class <type 'builtin_function_or_method'>
helper for pickle |
T.force.im_self.__repr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__repr__() <==> repr(x) |
T.force.im_self.__setattr__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__setattr__('name', value) <==> x.name = value |
T.force.im_self.__str__ |
<type 'method-wrapper'>
belongs to class <type 'method-wrapper'>
x.__str__() <==> str(x) |
T.force.im_self.__weakref__ |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|
T.force.im_self.current_languages |
<type 'list'>
belongs to class <type 'list'>
list() -> new list list(sequence) -> new list initialized from sequence's items |
T.force.im_self.folder |
<type 'str'>
belongs to class <type 'str'>
str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object. |
T.force.im_self.force |
<type 'instancemethod'>
belongs to class <type 'instancemethod'>
|
T.force.im_self.t |
<type 'NoneType'>
belongs to class <type 'NoneType'>
|