From 614b0d2187215ee7458306789d5e1987382ff89e Mon Sep 17 00:00:00 2001 From: dbs Date: Tue, 4 Dec 2007 09:54:24 +0000 Subject: [PATCH] Prevent msgstr without msgid from being generated in POT. git-svn-id: svn://svn.open-ils.org/ILS/trunk@8137 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- build/i18n/po/db.seed.pot | 2 +- build/i18n/scripts/db-seed-i18n.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build/i18n/po/db.seed.pot b/build/i18n/po/db.seed.pot index 9cecdbd9dc..b70030d56b 100644 --- a/build/i18n/po/db.seed.pot +++ b/build/i18n/po/db.seed.pot @@ -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 " "Language-Team: LANGUAGE " diff --git a/build/i18n/scripts/db-seed-i18n.py b/build/i18n/scripts/db-seed-i18n.py index e42c830e34..baa78914ce 100755 --- a/build/i18n/scripts/db-seed-i18n.py +++ b/build/i18n/scripts/db-seed-i18n.py @@ -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): -- 2.43.2