X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7725f7f3f752fce60f4a5dff7ef68e59557ad613..1bf000d47e1987b1ed57a0d923b2ba57e26081a8:/po/xml2po.py diff --git a/po/xml2po.py b/po/xml2po.py index dac3a773..a8b62666 100755 --- a/po/xml2po.py +++ b/po/xml2po.py @@ -1,6 +1,7 @@ #!/usr/bin/python import sys import os +import string from xml.sax import make_parser from xml.sax.handler import ContentHandler @@ -14,6 +15,10 @@ class parseXML(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() @@ -32,6 +37,7 @@ for x in dir: for k, v in attrlist.items(): print print '#: ' + sys.argv[1] + string.replace(k, "\\n", "\"\n\"") print 'msgid "' + str(k) + '"' print 'msgstr ""'