summaryrefslogtreecommitdiff
path: root/bin/addons/base/module/wizard/wizard_export_lang.py
diff options
context:
space:
mode:
authorNajlaa <nel@silver>2008-12-16 13:59:34 +0100
committerNajlaa <nel@silver>2008-12-16 13:59:34 +0100
commit48bf6ab1e826123e667ffcd93fc6d50ccc8630cb (patch)
tree39608c6dd534e0c46514a58419f7884039e4876f /bin/addons/base/module/wizard/wizard_export_lang.py
parenta6b3be7f101164f08dd14636aa6cf68603fa26b0 (diff)
call function scan language for selection field
bzr revid: nel@silver-20081216125934-nmsxq3cmawhgtl3k
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_export_lang.py')
-rw-r--r--bin/addons/base/module/wizard/wizard_export_lang.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/addons/base/module/wizard/wizard_export_lang.py b/bin/addons/base/module/wizard/wizard_export_lang.py
index 2e9751e55e5..046b9ccb4dc 100644
--- a/bin/addons/base/module/wizard/wizard_export_lang.py
+++ b/bin/addons/base/module/wizard/wizard_export_lang.py
@@ -26,7 +26,6 @@ import base64
import StringIO
import csv
import pooler
-
from osv import fields,osv
@@ -51,7 +50,6 @@ class wizard_export_lang(osv.osv_memory):
mods = map(lambda m: m.name, this.modules) or ['all']
mods.sort()
buf=StringIO.StringIO()
-
tools.trans_export(this.lang, mods, buf, this.format, dbname=cr.dbname)
if this.format == 'csv':
this.advice = _("Save this document to a .CSV file and open it with your favourite spreadsheet software. The file encoding is UTF-8. You have to translate the latest column before reimporting it.")
@@ -64,8 +62,7 @@ class wizard_export_lang(osv.osv_memory):
this.advice = _('Save this document to a .tgz file. This archive containt UTF-8 %s files and may be uploaded to launchpad.') % (ext,)
this.name = "%s.%s" % (this.lang or _('new'), this.format)
-
- out=base64.encodestring(buf.getvalue())
+ out=base64.encodestring(buf.getvalue().encode('utf8'))
buf.close()
return self.write(cr, uid, ids, {'state':'get', 'data':out, 'advice':this.advice, 'name':this.name}, context=context)