[logs table view] properly translate level buy using the correct msgid. Closes #2356329 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 14 May 2012 15:25:41 +0200
branchstable
changeset 8407 6874eb7a08e8
parent 8406 f3bc8ca0b715
child 8408 41461b2e9854
child 8413 9ac36a6ec07e
[logs table view] properly translate level buy using the correct msgid. Closes #2356329
web/views/cwsources.py
--- a/web/views/cwsources.py	Mon May 14 15:24:07 2012 +0200
+++ b/web/views/cwsources.py	Mon May 14 15:25:41 2012 +0200
@@ -373,8 +373,9 @@
         w(u'<label>%s</label>' % self._cw._(u'Message threshold'))
         w(u'<select class="log_filter" onchange="filterLog(\'%s\', this.options[this.selectedIndex].value)">'
           % self.view.domid)
-        for level in ('Debug', 'Info', 'Warning', 'Error', 'Fatal'):
-            w('<option value="%s">%s</option>' % (level, self._cw._(level)))
+        for level in ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'FATAL'):
+            w('<option value="%s">%s</option>' % (level.capitalize(),
+                                                  self._cw._(level)))
         w(u'</select>')
         w(u'</fieldset></form>')
         super(LogTableLayout, self).render_table(w, actions, paginate)