[open-ils-commits] r14558 - tags/rel_1_6_0_0/build/i18n/scripts (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 22 11:00:49 EDT 2009
Author: miker
Date: 2009-10-22 11:00:46 -0400 (Thu, 22 Oct 2009)
New Revision: 14558
Modified:
tags/rel_1_6_0_0/build/i18n/scripts/db-seed-i18n.py
tags/rel_1_6_0_0/build/i18n/scripts/fieldmapper.py
tags/rel_1_6_0_0/build/i18n/scripts/ils_events.py
Log:
remove the call to unicode() -- breaks things on python 2.5+
Modified: tags/rel_1_6_0_0/build/i18n/scripts/db-seed-i18n.py
===================================================================
--- tags/rel_1_6_0_0/build/i18n/scripts/db-seed-i18n.py 2009-10-22 14:37:26 UTC (rev 14557)
+++ tags/rel_1_6_0_0/build/i18n/scripts/db-seed-i18n.py 2009-10-22 15:00:46 UTC (rev 14558)
@@ -119,7 +119,7 @@
if msgstr == '':
# Don't generate a stmt for an untranslated string
break
- self.sql.append(unicode(insert % (identifier.group('class'), occurid, locale, msgstr), 'utf_8'))
+ self.sql.append(insert % (identifier.group('class'), occurid, locale, msgstr))
def main():
"""
Modified: tags/rel_1_6_0_0/build/i18n/scripts/fieldmapper.py
===================================================================
--- tags/rel_1_6_0_0/build/i18n/scripts/fieldmapper.py 2009-10-22 14:37:26 UTC (rev 14557)
+++ tags/rel_1_6_0_0/build/i18n/scripts/fieldmapper.py 2009-10-22 15:00:46 UTC (rev 14558)
@@ -69,9 +69,9 @@
for name in entry.occurrences:
if entry.msgstr == '':
# No translation available; use the en-US definition
- self.definitions.append(unicode(entity % (name[0], entry.msgid), 'utf_8'))
+ self.definitions.append(entity % (name[0], entry.msgid))
else:
- self.definitions.append(unicode(entity % (name[0], entry.msgstr), 'utf_8'))
+ self.definitions.append(entity % (name[0], entry.msgstr))
class IDLHandler(xml.sax.handler.ContentHandler):
"""
Modified: tags/rel_1_6_0_0/build/i18n/scripts/ils_events.py
===================================================================
--- tags/rel_1_6_0_0/build/i18n/scripts/ils_events.py 2009-10-22 14:37:26 UTC (rev 14557)
+++ tags/rel_1_6_0_0/build/i18n/scripts/ils_events.py 2009-10-22 15:00:46 UTC (rev 14558)
@@ -98,9 +98,9 @@
if entry.msgstr == '':
# No translation available; use the en-US definition
- self.definitions.append(unicode(event % (int(numcode), textcode, self.locale, entry.msgid), 'utf_8'))
+ self.definitions.append(event % (int(numcode), textcode, self.locale, entry.msgid))
else:
- self.definitions.append(unicode(event % (int(numcode), textcode, self.locale, entry.msgstr), 'utf_8'))
+ self.definitions.append(event % (int(numcode), textcode, self.locale, entry.msgstr))
class ILSEventHandler(xml.sax.handler.ContentHandler):
"""
More information about the open-ils-commits
mailing list