From f2674fb67349858bc769c517e7f4f456b6f05686 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 13 Jan 2014 22:51:39 +0100 Subject: [PATCH] identities: translate the hint field of Field objects when building form widgets --- authentic/identities.py | 2 ++ 1 file changed, 2 insertions(+) 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 = []