[schema display] display_name shouldn't call .lower(). Note the only proper way is to have different msgid for upper/lower cases. Closes #1105433
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 14 Oct 2011 08:51:24 +0200
changeset 7951 b7c825b00f64
parent 7950 99ae8c883ad3
child 7953 a37531c8a4a6
[schema display] display_name shouldn't call .lower(). Note the only proper way is to have different msgid for upper/lower cases. Closes #1105433
schema.py
--- a/schema.py	Fri Oct 14 08:50:09 2011 +0200
+++ b/schema.py	Fri Oct 14 08:51:24 2011 +0200
@@ -170,11 +170,10 @@
     if form:
         key = key + '_' + form
     # ensure unicode
-    # .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()
+        return unicode(req.pgettext(context, key))
     else:
-        return unicode(req._(key)).lower()
+        return unicode(req._(key))
 
 __builtins__['display_name'] = deprecated('[3.4] display_name should be imported from cubicweb.schema')(display_name)