[open-ils-commits] r15406 - branches/rel_1_6/build/i18n/scripts (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 1 00:58:09 EST 2010
Author: dbs
Date: 2010-02-01 00:58:06 -0500 (Mon, 01 Feb 2010)
New Revision: 15406
Modified:
branches/rel_1_6/build/i18n/scripts/dojo_resource.py
Log:
polib tightened up its parsing of PO files and expects integers for linenumbers
Modified: branches/rel_1_6/build/i18n/scripts/dojo_resource.py
===================================================================
--- branches/rel_1_6/build/i18n/scripts/dojo_resource.py 2010-02-01 05:14:09 UTC (rev 15405)
+++ branches/rel_1_6/build/i18n/scripts/dojo_resource.py 2010-02-01 05:58:06 UTC (rev 15406)
@@ -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