[views] bugfix
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Sat, 07 Nov 2009 19:25:24 +0100
changeset 146 b509fc2c9435
parent 145 629233488671
child 147 aced35dab06d
[views] bugfix
views/secondary.py
--- a/views/secondary.py	Fri Nov 06 14:52:38 2009 +0100
+++ b/views/secondary.py	Sat Nov 07 19:25:24 2009 +0100
@@ -35,7 +35,7 @@
         nmb_entries = self.req.execute(self.countrql, args)[0][0]
         label = u'%s %s [%s]' % (self.req._(calendar.MONTHNAMES[month-1]), year,
                                  nmb_entries)
-        vtitle = '%s %s' % (display_name('BlogEntry', 'plural'), label)
+        vtitle = '%s %s' % (display_name(self.req, 'BlogEntry', 'plural'), label)
         url = xml_escape(self.build_url('view', rql=rql, month=month, year=year, vtitle=vtitle))
         link = u'<a href="%s" title="">%s</a>' % (url, label)
         items.append( u'<li class="">%s</li>\n' % link )