summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-01-13 21:51:39 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2014-01-13 21:51:39 (GMT)
commitf2674fb67349858bc769c517e7f4f456b6f05686 (patch)
treedb47b34e7caaf3a7f0319c93b4ffaa33e943b0c4
parentea976f0c11df9302bbe7ec97c1f75a851448cb39 (diff)
downloadauthentic-old-f2674fb67349858bc769c517e7f4f456b6f05686.zip
authentic-old-f2674fb67349858bc769c517e7f4f456b6f05686.tar.gz
authentic-old-f2674fb67349858bc769c517e7f4f456b6f05686.tar.bz2
identities: translate the hint field of Field objects when building form widgets
-rw-r--r--authentic/identities.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/authentic/identities.py b/authentic/identities.py
index 7bc8e4e..fa1b4bc 100644
--- a/authentic/identities.py
+++ b/authentic/identities.py
@@ -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 = []