identities: translate the hint field of Field objects when building form widgets
This commit is contained in:
parent
ea976f0c11
commit
f2674fb673
|
@ -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 = []
|
||||
|
|
Reference in New Issue