[open-ils-commits] r15062 - trunk/build/i18n/scripts (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Dec 2 21:54:52 EST 2009
Author: dbs
Date: 2009-12-02 21:54:50 -0500 (Wed, 02 Dec 2009)
New Revision: 15062
Modified:
trunk/build/i18n/scripts/db-seed-i18n.py
trunk/build/i18n/scripts/fieldmapper.py
trunk/build/i18n/scripts/ils_events.py
Log:
Once again into the breach
Modified: trunk/build/i18n/scripts/db-seed-i18n.py
===================================================================
--- trunk/build/i18n/scripts/db-seed-i18n.py 2009-12-02 23:39:35 UTC (rev 15061)
+++ trunk/build/i18n/scripts/db-seed-i18n.py 2009-12-03 02:54:50 UTC (rev 15062)
@@ -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: trunk/build/i18n/scripts/fieldmapper.py
===================================================================
--- trunk/build/i18n/scripts/fieldmapper.py 2009-12-02 23:39:35 UTC (rev 15061)
+++ trunk/build/i18n/scripts/fieldmapper.py 2009-12-03 02:54:50 UTC (rev 15062)
@@ -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: trunk/build/i18n/scripts/ils_events.py
===================================================================
--- trunk/build/i18n/scripts/ils_events.py 2009-12-02 23:39:35 UTC (rev 15061)
+++ trunk/build/i18n/scripts/ils_events.py 2009-12-03 02:54:50 UTC (rev 15062)
@@ -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