[open-ils-commits] r15408 - trunk/build/i18n/scripts (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Feb 1 01:00:09 EST 2010


Author: dbs
Date: 2010-02-01 01:00:06 -0500 (Mon, 01 Feb 2010)
New Revision: 15408

Modified:
   trunk/build/i18n/scripts/dojo_resource.py
Log:
Forward-port r15406 from rel_1_6: Fix occurrences parsing in i18n build


Modified: trunk/build/i18n/scripts/dojo_resource.py
===================================================================
--- trunk/build/i18n/scripts/dojo_resource.py	2010-02-01 05:59:24 UTC (rev 15407)
+++ trunk/build/i18n/scripts/dojo_resource.py	2010-02-01 06:00:06 UTC (rev 15408)
@@ -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