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 | 1f43329f0e4828e6afd91ec25317177bb335ecf7 (patch) | |
| tree | 1beaa06b981e18d560a5a282809157e9075db37b /addons/base_module_publish/wizard/module_zip.py | |
| parent | 0b1dfd702fd5b087f0e1be81ccf3ed77f0dcf3da (diff) | |
* translation of nearly all exceptions
* the export of translations per module take only the files of these modules
bzr revid: chs@tinyerp.com-77721e34d87043c4008239f004c7c616f6d4dc82
Diffstat (limited to 'addons/base_module_publish/wizard/module_zip.py')
| -rw-r--r-- | addons/base_module_publish/wizard/module_zip.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/base_module_publish/wizard/module_zip.py b/addons/base_module_publish/wizard/module_zip.py index 376fd4c535f..6aca0381ccc 100644 --- a/addons/base_module_publish/wizard/module_zip.py +++ b/addons/base_module_publish/wizard/module_zip.py @@ -58,8 +58,8 @@ def createzip(cr, uid, moduleid, context, b64enc=True, src=True): module = module_obj.browse(cr, uid, moduleid) if module.state != 'installed': - raise wizard.except_wizard('Error', - 'Can not export module that is not installed!') + raise wizard.except_wizard(_('Error'), + _('Can not export module that is not installed!')) ad = tools.config['addons_path'] if os.path.isdir(os.path.join(ad, module.name)): @@ -73,7 +73,7 @@ def createzip(cr, uid, moduleid, context, b64enc=True, src=True): elif os.path.isfile(os.path.join(ad, module.name + '.zip')): val = file(os.path.join(ad, module.name + '.zip'), 'rb').read() else: - raise wizard.except_wizard('Error', 'Could not find the module to export!') + raise wizard.except_wizard(_('Error'), _('Could not find the module to export!')) if b64enc: val =base64.encodestring(val) return {'module_file':val, 'module_filename': module.name + '-' + \ |
