[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - IDomain.py:1.4
Barry Warsaw
barry@wooz.org
Wed, 12 Jun 2002 16:55:59 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv10425/lib/python/Zope/I18n
Modified Files:
IDomain.py
Log Message:
IDomains are placeless, so change the usage docstring so that it's
clear they're retrieved from ITranslationServices.
=== Zope3/lib/python/Zope/I18n/IDomain.py 1.3 => 1.4 ===
Usage:
- domain = Domain(self, 'MyProduct')
+ domain = translationService.getDomain('domain')
domain.translate('MyProductTitle', context)
-
- Constructor Arguments:
-
- place -- A location where the Domain should look for the translation
- service.
-
- domain -- Secifies the domain to look up for the translation. See
- ITranslationService for more details on domains.
"""
def translate(msgid, mapping=None, context=None, target_language=None):