diff --git a/bin/addons/base/module/module_wizard.xml b/bin/addons/base/module/module_wizard.xml
index a7e3ceba627..0d21f1eecbe 100644
--- a/bin/addons/base/module/module_wizard.xml
+++ b/bin/addons/base/module/module_wizard.xml
@@ -6,23 +6,23 @@
base.module.import
-
+
Update Modules List
module.module.update
-
+
-
+
Load an Official Translation
module.lang.install
-
+
Export a Translation File
wizard.module.lang.export
form
@@ -32,7 +32,7 @@
-
+
@@ -105,6 +105,6 @@
new
-
+
diff --git a/bin/addons/base/module/wizard/wizard_export_lang.py b/bin/addons/base/module/wizard/wizard_export_lang.py
index 2a56cac2fcc..58de337f45e 100644
--- a/bin/addons/base/module/wizard/wizard_export_lang.py
+++ b/bin/addons/base/module/wizard/wizard_export_lang.py
@@ -27,7 +27,7 @@ import cStringIO
import csv
import pooler
from osv import fields,osv
-
+from tools.translate import _
class wizard_export_lang(osv.osv_memory):
@@ -60,8 +60,10 @@ class wizard_export_lang(osv.osv_memory):
elif this.format == 'tgz':
ext = this.lang and '.po' or '.pot'
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)
+ filename = _('new')
+ if not this.lang and len(mods) == 1:
+ filename = mods[0]
+ this.name = "%s.%s" % (this.lang or filename, this.format)
out=base64.encodestring(buf.getvalue())
buf.close()
return self.write(cr, uid, ids, {'state':'get', 'data':out, 'advice':this.advice, 'name':this.name}, context=context)