[open-ils-commits] r8137 - in trunk/build/i18n: po scripts

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Dec 4 05:13:52 EST 2007


Author: dbs
Date: 2007-12-04 04:54:24 -0500 (Tue, 04 Dec 2007)
New Revision: 8137

Modified:
   trunk/build/i18n/po/db.seed.pot
   trunk/build/i18n/scripts/db-seed-i18n.py
Log:
Prevent msgstr without msgid from being generated in POT.


Modified: trunk/build/i18n/po/db.seed.pot
===================================================================
--- trunk/build/i18n/po/db.seed.pot	2007-12-04 09:49:22 UTC (rev 8136)
+++ trunk/build/i18n/po/db.seed.pot	2007-12-04 09:54:24 UTC (rev 8137)
@@ -3,7 +3,7 @@
 msgstr ""
 "Project-Id-Version: Evergreen 1.4"
 "Report-Msgid-Bugs-To: open-ils-dev at 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 at ADDRESS>"
 "Language-Team: LANGUAGE <LL at li.org>"

Modified: trunk/build/i18n/scripts/db-seed-i18n.py
===================================================================
--- trunk/build/i18n/scripts/db-seed-i18n.py	2007-12-04 09:49:22 UTC (rev 8136)
+++ trunk/build/i18n/scripts/db-seed-i18n.py	2007-12-04 09:54:24 UTC (rev 8137)
@@ -79,10 +79,11 @@
                 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):



More information about the open-ils-commits mailing list