From 4e53136aedd3a3a70a6ee140c103e7cfdb9baa20 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 1 Feb 2010 06:00:06 +0000 Subject: [PATCH] Forward-port r15406 from rel_1_6: Fix occurrences parsing in i18n build git-svn-id: svn://svn.open-ils.org/ILS/trunk@15408 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- build/i18n/scripts/dojo_resource.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/i18n/scripts/dojo_resource.py b/build/i18n/scripts/dojo_resource.py index 6e069e8e27..902498e2e2 100755 --- a/build/i18n/scripts/dojo_resource.py +++ b/build/i18n/scripts/dojo_resource.py @@ -79,7 +79,10 @@ class DojoResource (basel10n.BaseL10N): """ 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 -- 2.43.2