[FIX] Export & Synchronize Translations Corrected
authorAnup (OpenERP) <ach@tinyerp.com>
Tue, 12 Oct 2010 12:09:08 +0000 (17:39 +0530)
committerAnup (OpenERP) <ach@tinyerp.com>
Tue, 12 Oct 2010 12:09:08 +0000 (17:39 +0530)
lp bug: https://launchpad.net/bugs/658993 fixed

bzr revid: ach@tinyerp.com-20101012120908-1u5n29r040drhhzs

bin/tools/translate.py

index b9ce95c..64c30af 100644 (file)
@@ -605,7 +605,7 @@ def trans_generate(lang, modules, dbname=None):
             if fname and obj.report_type in ('pdf', 'xsl'):
                 try:
                     d = etree.parse(tools.file_open(fname))
-                    for t in parse_func(d):
+                    for t in parse_func(d.iter()):
                         push_translation(module, report_type, name, 0, t)
                 except (IOError, etree.XMLSyntaxError):
                     logging.getLogger("i18n").exception("couldn't export translation for report %s %s %s", name, report_type, fname)