Home | Trees | Index | Help |
|
---|
Package ldaptor :: Package apps :: Package webui :: Module nevow_i18n :: Class Translator |
|
object
--+
|
Translator
A gettext-like Translator for Nevow.
The major difference between this and naive gettext is that with Translator, the actual translation is done as part of Nevow's flattening process, allowing per-user settings to be retrieved via the context.Method Summary | |
---|---|
Initialize. | |
PlaceHolder |
Translate a string. |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Instance Variable Summary | |
---|---|
NoneType |
args : positional arguments to pass to translator. |
str |
gettextFunction : If using the default translator function, name of GNU gettext function
to wrap. |
NoneType |
kwargs : keyword arguments to pass to translator. |
NoneType |
translator : the actual translation function to use. |
Method Details |
---|
__init__(self,
**kwargs)
Initialize.
|
__call__(self,
*args,
**kwargs)
Translate a string.
|
Instance Variable Details |
---|
argspositional arguments to pass to translator.
|
gettextFunctionIf using the default translator function, name of GNU gettext function to wrap. Useful for 'ungettext'.
|
kwargskeyword arguments to pass to translator.
|
translatorthe actual translation function to use.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 3 13:51:12 2006 | http://epydoc.sf.net |