[IMP]translate placeholders.

bzr revid: vme@tinyerp.com-20120612120205-2ehz22nlhxsq3245
This commit is contained in:
Vidhin Mehta (OpenERP) 2012-06-12 17:32:05 +05:30
parent b152336fe4
commit 67af184b8c
1 changed files with 4 additions and 0 deletions

View File

@ -1762,6 +1762,10 @@ class BaseModel(object):
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('help'))
if trans:
node.set('help', trans)
if node.get('placeholder'):
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('placeholder'))
if trans:
node.set('placeholder', trans)
for f in node:
if children or (node.tag == 'field' and f.tag in ('filter','separator')):