[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:
parent
f8c860f789
commit
66a453bf7d
|
@ -47,7 +47,7 @@ class base_language_export(osv.osv_memory):
|
||||||
mods = map(lambda m: m.name, this.modules) or ['all']
|
mods = map(lambda m: m.name, this.modules) or ['all']
|
||||||
mods.sort()
|
mods.sort()
|
||||||
buf=cStringIO.StringIO()
|
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':
|
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.")
|
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':
|
elif this.format == 'po':
|
||||||
|
@ -86,4 +86,4 @@ class base_language_export(osv.osv_memory):
|
||||||
}
|
}
|
||||||
base_language_export()
|
base_language_export()
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
Loading…
Reference in New Issue