[FIX]: base_export_language.py: forgot to replace dbname with cr in the call to trans_export.

lp bug: https://launchpad.net/bugs/700770 fixed

bzr revid: vmt@openerp.com-20110110085335-lj3zzgdzvm5a45x9
This commit is contained in:
Vo Minh Thu 2011-01-10 09:53:35 +01:00
parent f8c860f789
commit 66a453bf7d
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class base_language_export(osv.osv_memory):
mods = map(lambda m: m.name, this.modules) or ['all']
mods.sort()
buf=cStringIO.StringIO()
tools.trans_export(this.lang, mods, buf, this.format, dbname=cr.dbname)
tools.trans_export(this.lang, mods, buf, this.format, cr)
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.")
elif this.format == 'po':
@ -86,4 +86,4 @@ class base_language_export(osv.osv_memory):
}
base_language_export()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: