Back to index

plone3  3.1.7
Domain.py
Go to the documentation of this file.
00001 """
00002 $Id: Domain.py 21785 2006-04-04 20:34:35Z hannosch $
00003 """
00004 
00005 class Domain:
00006 
00007     def __init__(self, domain, service):
00008         self._domain = domain
00009         self._translationService = service
00010 
00011     def getDomainName(self):
00012         """Return the domain name"""
00013         return self._domain
00014 
00015     def translate(self, msgid, mapping=None, context=None,
00016                   target_language=None):
00017         return self._translationService.translate(
00018             self._domain, msgid, mapping, context, target_language)