[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - MessageCatalog.py:1.4
Barry Warsaw
barry@wooz.org
Wed, 12 Jun 2002 16:56:54 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv11319/lib/python/Zope/I18n
Modified Files:
MessageCatalog.py
Log Message:
Clean up some code, and get rid of empty docstrings.
setMessage(): argument `id' => `msgid'
=== Zope3/lib/python/Zope/I18n/MessageCatalog.py 1.3 => 1.4 ===
__class_implements__ = IFactory
-
def __init__(self, language, domain="default"):
"""Initialize the message catalog"""
super(MessageCatalog, self).__init__('', '', '')
-
self._language = language
self._domain = domain
self._messages = OOBTree()
-
- def setMessage(self, id, message):
+ def setMessage(self, msgid, message):
"""Set a message to the catalog."""
- self._messages[id] = message
-
+ self._messages[msgid] = message
def getMessageIds(self):
- """ """
+ """Get a list of all the message ids."""
return list(self._messages.keys())