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.
domain
(type: NoneType
)
None
translate(msgid, mapping=None, context=None, target_language=None, default=None)
See interface ITranslationDomain