don't grab empty strings in xml2po.py
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 30 Mar 2008 13:24:19 +0000 (13:24 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 30 Mar 2008 13:24:19 +0000 (13:24 +0000)
po/xml2po.py

index 88e0791233c2b287ed6a87a571d43c07303aecdf..8108caeb5c1f667939c98ad8d2ee405eeea5d460 100755 (executable)
@@ -55,6 +55,7 @@ for (k,c) in attrlist:
        if c:
                for l in c.split('\n'):
                        print "#. ", l
-       print 'msgid "' + str(k) + '"'
-       print 'msgstr ""'
+       if str(k) != "":
+               print 'msgid "' + str(k) + '"'
+               print 'msgstr ""'