Trees | Index | Help |
|
---|
Package zope :: Package i18n :: Module simpletranslationdomain :: Class SimpleTranslationDomain |
|
object
--+
|
SimpleTranslationDomain
TranslationDomain
This is the simplest implementation of the ITranslationDomain I could come up with.
The constructor takes one optional argument 'messages', which will be used to do the translation. The 'messages' attribute has to have the following structure:
{('language', 'msg_id'): 'message', ...}
Note: This Translation Domain does not use message catalogs.Method Summary | |
---|---|
Initializes the object. | |
See interface ITranslationDomain | |
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) |
Class Variable Summary | |
---|---|
Implements |
__implemented__ = <implementedBy zope.i18n.simpletransla...
|
ClassProvides |
__providedBy__ = <zope.interface.declarations.ClassProvi...
|
ClassProvides |
__provides__ = <zope.interface.declarations.ClassProvide...
|
NoneType |
domain = None |
Method Details |
---|
__init__(self,
domain,
messages=None)
Initializes the object. No arguments are needed.
|
translate(self, msgid, mapping=None, context=None, target_language=None, default=None)See interface ITranslationDomain |
Class Variable Details |
---|
__implemented__
|
__providedBy__
|
__provides__
|
domain
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 24 12:01:20 2005 | http://epydoc.sf.net |