author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Thu, 17 Sep 2009 12:29:05 +0200 | |
branch | 3.5 |
changeset 3284 | 036cf5a25714 |
parent 3282 | 29d561abe8a7 |
child 3285 | fa3dc35b564f |
--- a/schema.py Thu Sep 17 12:03:14 2009 +0200 +++ b/schema.py Thu Sep 17 12:29:05 2009 +0200 @@ -110,9 +110,9 @@ if form: key = key + '_' + form # ensure unicode - # added .lower() in case no translation are available - if context: - return req.pgettext(context, key).lower() + # .lower() in case no translation are available XXX done whatever a translation is there or not! + if context is not None: + return unicode(req.pgettext(context, key)).lower() else: return unicode(req._(key)).lower()