diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2011-01-05 15:07:58 +0100 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2011-01-05 15:07:58 +0100 |
| commit | c2402b14a9011fc4d24557b270421d2f3ccb574c (patch) | |
| tree | 87e18592818abd66b66bcbc3d6ef93015a8d8144 /bin/addons/base/module/module.py | |
| parent | fc20503f958ba72c453942af4659ff8fb9cc3d8d (diff) | |
[IMP] trans_export/trans_load: passing a cursor around instead of a dbname.
bzr revid: vmt@openerp.com-20110105140758-vgoufkd85v6ywrjk
Diffstat (limited to 'bin/addons/base/module/module.py')
| -rw-r--r-- | bin/addons/base/module/module.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/addons/base/module/module.py b/bin/addons/base/module/module.py index d90ef415951..3237da178cc 100644 --- a/bin/addons/base/module/module.py +++ b/bin/addons/base/module/module.py @@ -501,7 +501,7 @@ class module(osv.osv): f2 = addons.get_module_resource(mod.name, 'i18n', iso_lang2 + '.po') if f2: logger.info('module %s: loading base translation file %s for language %s', mod.name, iso_lang2, lang) - tools.trans_load(cr.dbname, f2, lang, verbose=False, context=context) + tools.trans_load(cr, f2, lang, verbose=False, context=context) context2['overwrite'] = True # Implementation notice: we must first search for the full name of # the language derivative, like "en_UK", and then the generic, @@ -511,7 +511,7 @@ class module(osv.osv): f = addons.get_module_resource(mod.name, 'i18n', iso_lang + '.po') if f: logger.info('module %s: loading translation file (%s) for language %s', mod.name, iso_lang, lang) - tools.trans_load(cr.dbname, f, lang, verbose=False, context=context2) + tools.trans_load(cr, f, lang, verbose=False, context=context2) elif iso_lang != 'en': logger.warning('module %s: no translation for language %s', mod.name, iso_lang) |
