Prevent msgstr without msgid from being generated in POT.
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 4 Dec 2007 09:54:24 +0000 (09:54 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 4 Dec 2007 09:54:24 +0000 (09:54 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@8137 dcc99617-32d9-48b4-a31d-7c20da2025e4

build/i18n/po/db.seed.pot
build/i18n/scripts/db-seed-i18n.py

index 9cecdbd..b70030d 100644 (file)
@@ -3,7 +3,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Evergreen 1.4"
 "Report-Msgid-Bugs-To: open-ils-dev@list.georgialibraries.org"
-"POT-Creation-Date: 2007-12-04 05:05:05 -0400"
+"POT-Creation-Date: 2007-12-04 05:12:22 -0400"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>"
 "Language-Team: LANGUAGE <LL@li.org>"
index e42c830..baa7891 100755 (executable)
@@ -79,10 +79,11 @@ class EvergreenSQL:
                 for i18n in fi18n.groups():
                     # Unescape escaped SQL single-quotes for translators' sanity
                     i18n = re.compile(r'\'\'').sub("'", i18n)
-                    poe = polib.POEntry()
-                    poe.occurences = [(table, n)]
-                    poe.msgid = i18n
-                    self.pot.append(poe)
+                    if i18n is not None:
+                        poe = polib.POEntry()
+                        poe.occurences = [(table, n)]
+                        poe.msgid = i18n
+                        self.pot.append(poe)
             n = n + 1
 
     def savepot(self, destination):