#!/usr/bin/python
import sys
import os
+import string
from xml.sax import make_parser
from xml.sax.handler import ContentHandler
attrlist[attrs.get('text', "")] = "foo"
if (attrs.has_key('title')):
attrlist[attrs.get('title', "")] = "foo"
+ if (attrs.has_key('value')):
+ attrlist[attrs.get('value', "")] = "foo"
+ if (attrs.has_key('caption')):
+ attrlist[attrs.get('caption', "")] = "foo"
parser = make_parser()
for k, v in attrlist.items():
print
print '#: ' + sys.argv[1]
+ string.replace(k, "\\n", "\"\n\"")
print 'msgid "' + str(k) + '"'
print 'msgstr ""'