branch | 3.5 |
changeset 3284 | 036cf5a25714 |
parent 3275 | 5247789df541 |
child 3287 | 19c1011736a6 |
--- 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()