Add missing translation of confirm attribute for issue706

This commit is contained in:
Cédric Krier committed 2008-12-30 14:11:38 +01:00
1 parent 40fe99ad1a
commit 932cee9217
1 file changed
+7 -12
+7 -12
View File
@@ -2120,18 +2120,13 @@ class ORM(object):
# translate view
if ('language' in context) and not result:
if element.get('string'):
trans = translation_obj._get_source(cursor,
self._name, 'view', context['language'],
element.get('string'))
if trans:
element.set('string', trans)
if element.get('sum'):
trans = translation_obj._get_source(cursor,
self._name, 'view', context['language'],
element.get('sum'))
if trans:
element.set('sum', trans)
for attr in ('string', 'sum', 'confirm'):
if element.get(attr):
trans = translation_obj._get_source(cursor,
self._name, 'view', context['language'],
element.get(attr))
if trans:
element.set(attr, trans)
if element.tag in ('form', 'tree', 'graph'):
value = ''