[open-ils-commits] r15407 - branches/rel_1_6_0/build/i18n/scripts (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 1 00:59:27 EST 2010


Author: dbs
Date: 2010-02-01 00:59:24 -0500 (Mon, 01 Feb 2010)
New Revision: 15407

Modified:
   branches/rel_1_6_0/build/i18n/scripts/dojo_resource.py
Log:
Backport r15406 from rel_1_6: fix parsing of occurrences thanks to polib update


Modified: branches/rel_1_6_0/build/i18n/scripts/dojo_resource.py
===================================================================
--- branches/rel_1_6_0/build/i18n/scripts/dojo_resource.py	2010-02-01 05:58:06 UTC (rev 15406)
+++ branches/rel_1_6_0/build/i18n/scripts/dojo_resource.py	2010-02-01 05:59:24 UTC (rev 15407)
@@ -79,7 +79,10 @@
         """
 
         for entry in self.pot:
-            for filename, msgkey in entry.occurrences:
+            for occurrence in entry.occurrences:
+                # Ack. Horrible hack because polib started insisting
+                # that occurrences use integers for line numbers. The nerve!
+                filename, msgkey = occurrence[0].split('.js');
                 if entry.msgstr == '':
                     # No translation available; use the en-US definition
                     self.msgs[msgkey] = entry.msgid



More information about the open-ils-commits mailing list