summaryrefslogtreecommitdiff
path: root/addons/base_module_publish/wizard/base_module_publish.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@tinyerp.com>2008-07-08 08:13:12 +0000
committerChristophe Simonis <chs@tinyerp.com>2008-07-08 08:13:12 +0000
commit1f43329f0e4828e6afd91ec25317177bb335ecf7 (patch)
tree1beaa06b981e18d560a5a282809157e9075db37b /addons/base_module_publish/wizard/base_module_publish.py
parent0b1dfd702fd5b087f0e1be81ccf3ed77f0dcf3da (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/base_module_publish.py')
-rw-r--r--addons/base_module_publish/wizard/base_module_publish.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/addons/base_module_publish/wizard/base_module_publish.py b/addons/base_module_publish/wizard/base_module_publish.py
index 8fba0d11642..fd774f79d47 100644
--- a/addons/base_module_publish/wizard/base_module_publish.py
+++ b/addons/base_module_publish/wizard/base_module_publish.py
@@ -35,6 +35,7 @@ import urllib
import base64
import module_zip
+import tools
intro_form = '''<?xml version="1.0"?>
<form string="Module publication">
@@ -240,12 +241,12 @@ def _upload(self, cr, uid, datas, context):
('module', res['module_filename'], res['module_file'])
])
if result[0] == "1":
- raise wizard.except_wizard('Error', 'Login failed!')
+ raise wizard.except_wizard(_('Error'), _('Login failed!'))
elif result[0] == "2":
- raise wizard.except_wizard('Error',
- 'This version of the module is already exist on the server')
+ raise wizard.except_wizard(_('Error'),
+ _('This version of the module is already exist on the server'))
elif result[0] != "0":
- raise wizard.except_wizard('Error', 'Failed to upload the file')
+ raise wizard.except_wizard(_('Error'), _('Failed to upload the file'))
updata = {
'link_name': mod.shortdesc or '',
@@ -287,7 +288,7 @@ def module_check(self, cr, uid, data, context):
pool = pooler.get_pool(cr.dbname)
module = pool.get('ir.module.module').browse(cr, uid, data['id'], context)
if module.state != 'installed':
- raise wizard.except_wizard('Error', 'You could not publish a module that is not installed!')
+ raise wizard.except_wizard(_('Error'), _('You could not publish a module that is not installed!'))
return {
'name': module.name,
'shortdesc': module.shortdesc,