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 88e0791..8108cae 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 ""'