identities: translate the hint field of Field objects when building form widgets

This commit is contained in:
Benjamin Dauvergne 2014-01-13 22:51:39 +01:00
parent ea976f0c11
commit f2674fb673
1 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,8 @@ class Field:
value = keywords.pop('value', None)
if identity:
value = getattr(identity, self.key, value)
if 'hint' in keywords:
keywords['hint'] = _(keywords['hint'])
if 'options' in keywords:
# translate caption
new_options = []