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 | 0b1dfd702fd5b087f0e1be81ccf3ed77f0dcf3da (patch) | |
| tree | 59dfe23edf8dd0833fc73f051bfa7edf16ff5728 /bin/wizard/__init__.py | |
| parent | f8262137d224a9390d757c6ee3a75d52ef7c0868 (diff) | |
* translation of nearly all exceptions
* the export of translations per module take only the files of these modules
bzr revid: chs@tinyerp.com-52cb3686b17250df7bc23bf90d18397c7888e6f2
Diffstat (limited to 'bin/wizard/__init__.py')
| -rw-r--r-- | bin/wizard/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/wizard/__init__.py b/bin/wizard/__init__.py index 8bd2257aa20..10e57e93585 100644 --- a/bin/wizard/__init__.py +++ b/bin/wizard/__init__.py @@ -55,14 +55,14 @@ class interface(netsvc.Service): self.exportMethod(self.execute) self.wiz_name = name - def translate_view(self, cr, uid, node, state, lang): + def translate_view(self, cr, node, state, lang): if node.nodeType == node.ELEMENT_NODE: if node.hasAttribute('string') and node.getAttribute('string'): - trans = translate(cr, uid, self.wiz_name+','+state, 'wizard_view', lang, node.getAttribute('string').encode('utf8')) + trans = translate(cr, self.wiz_name+','+state, 'wizard_view', lang, node.getAttribute('string').encode('utf8')) if trans: node.setAttribute('string', trans.decode('utf8')) for n in node.childNodes: - self.translate_view(cr, uid, n, state, lang) + self.translate_view(cr, n, state, lang) def execute_cr(self, cr, uid, data, state='init', context=None): if not context: @@ -119,21 +119,21 @@ class interface(netsvc.Service): if lang: # translate fields for field in fields: - trans = translate(cr, uid, self.wiz_name+','+state+','+field, 'wizard_field', lang) + trans = translate(cr, self.wiz_name+','+state+','+field, 'wizard_field', lang) if trans: fields[field]['string'] = trans # translate arch if not isinstance(arch, UpdateableStr): doc = dom.minidom.parseString(arch) - self.translate_view(cr, uid, doc, state, lang) + self.translate_view(cr, doc, state, lang) arch = doc.toxml() # translate buttons button_list = list(button_list) for i, aa in enumerate(button_list): button_name = aa[0] - trans = translate(cr, uid, self.wiz_name+','+state+','+button_name, 'wizard_button', lang) + trans = translate(cr, self.wiz_name+','+state+','+button_name, 'wizard_button', lang) if trans: aa = list(aa) aa[1] = trans |
