diff options
author | Stephan Richter <stephan.richter@gmail.com> | 2004-07-13 16:56:24 +0000 |
---|---|---|
committer | Stephan Richter <stephan.richter@gmail.com> | 2004-07-13 16:56:24 +0000 |
commit | 216d74df3fc92686733ed551b9521983b358b567 (patch) | |
tree | 4ba3a60b2d0d94a572019c3e2de703b13ccc67cf | |
parent | 5e39f24c75ae98005ff224a571c944acdba13f7b (diff) | |
download | zope-tal-216d74df3fc92686733ed551b9521983b358b567.tar.gz |
Converted XXX to TODO and statement.
-rw-r--r-- | talgettext.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/talgettext.py b/talgettext.py index bc56187..d06af57 100644 --- a/talgettext.py +++ b/talgettext.py @@ -70,16 +70,16 @@ def usage(code, msg=''): 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 @@ class POEngine(DummyEngine): 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 @@ class UpdatePOEngine(POEngine): # 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 @@ def main(): '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] |