[Zope3-checkins] SVN: Zope3/trunk/src/zope/tal/talgettext.py
Converted XXX to TODO and statement.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Jul 13 12:56:24 EDT 2004
Log message for revision 26472:
Converted XXX to TODO and statement.
Changed:
U Zope3/trunk/src/zope/tal/talgettext.py
-=-
Modified: Zope3/trunk/src/zope/tal/talgettext.py
===================================================================
--- Zope3/trunk/src/zope/tal/talgettext.py 2004-07-13 16:55:23 UTC (rev 26471)
+++ Zope3/trunk/src/zope/tal/talgettext.py 2004-07-13 16:56:24 UTC (rev 26472)
@@ -70,16 +70,16 @@
class POTALInterpreter(TALInterpreter):
def translate(self, msgid, default, i18ndict=None, obj=None):
- # XXX is this right?
+ # If no i18n dict exists yet, create one.
if i18ndict is None:
i18ndict = {}
if obj:
i18ndict.update(obj)
- # XXX Mmmh, it seems that sometimes the msgid is None; is that really
+ # Mmmh, it seems that sometimes the msgid is None; is that really
# possible?
if msgid is None:
return None
- # XXX We need to pass in one of context or target_language
+ # TODO: We need to pass in one of context or target_language
return self.engine.translate(msgid, self.i18nContext.domain, i18ndict,
position=self.position, default=default)
@@ -104,8 +104,8 @@
return True # dummy
def translate(self, msgid, domain=None, mapping=None, default=None,
- # XXX position is not part of the ITALExpressionEngine
- # interface
+ # Position is not part of the ITALExpressionEngine
+ # interface
position=None):
# Make the message is a MessageID object, if the default differs
@@ -191,7 +191,7 @@
# Skip empty lines
if not l.strip():
continue
- # XXX: Does this always follow Python escape semantics?
+ # TODO: Does this always follow Python escape semantics?
l = eval(l)
if section == ID:
msgid += l
@@ -293,7 +293,7 @@
'version': __version__}
msgids = catalog.keys()
- # XXX: You should not sort by msgid, but by filename and position. (SR)
+ # TODO: You should not sort by msgid, but by filename and position. (SR)
msgids.sort()
for msgid in msgids:
positions = engine.catalog[msgid]
More information about the Zope3-Checkins
mailing list