diff options
| author | Christophe Simonis <chs@tinyerp.com> | 2008-07-08 08:13:12 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@tinyerp.com> | 2008-07-08 08:13:12 +0000 |
| commit | 0b1dfd702fd5b087f0e1be81ccf3ed77f0dcf3da (patch) | |
| tree | 59dfe23edf8dd0833fc73f051bfa7edf16ff5728 /bin/addons/base/module/wizard/wizard_import_lang.py | |
| parent | f8262137d224a9390d757c6ee3a75d52ef7c0868 (diff) | |
* translation of nearly all exceptions
* the export of translations per module take only the files of these modules
bzr revid: chs@tinyerp.com-52cb3686b17250df7bc23bf90d18397c7888e6f2
Diffstat (limited to 'bin/addons/base/module/wizard/wizard_import_lang.py')
| -rw-r--r-- | bin/addons/base/module/wizard/wizard_import_lang.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/addons/base/module/wizard/wizard_import_lang.py b/bin/addons/base/module/wizard/wizard_import_lang.py index d9543b7f851..a6516bb24df 100644 --- a/bin/addons/base/module/wizard/wizard_import_lang.py +++ b/bin/addons/base/module/wizard/wizard_import_lang.py @@ -32,6 +32,7 @@ import wizard import tools import base64 import pooler +from tempfile import TemporaryFile view_form="""<?xml version="1.0"?> <form string="Import language"> @@ -56,8 +57,11 @@ class wizard_import_lang(wizard.interface): def _import_lang(self, cr, uid, data, context): form=data['form'] - buf=base64.decodestring(data['form']['data']).split('\n') - tools.trans_load_data(cr.dbname, buf, form['code'], lang_name=form['name']) + #buf=base64.decodestring(form['data']).split('\n') + fileobj = TemporaryFile('w+') + fileobj.write( base64.decodestring(form['data']) ) + tools.trans_load_data(cr.dbname, fileobj, form['code'], lang_name=form['name']) + fileobj.close() return {} states={ |
