[prev/next] properly translate previous/next links' title, closes #2072158 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 04 Nov 2011 13:00:30 +0100
branchstable
changeset 8052 fbeb82fe45a4
parent 8048 10a0f73d834d
child 8053 fcb2d83de850
[prev/next] properly translate previous/next links' title, closes #2072158
web/component.py
--- a/web/component.py	Thu Nov 03 15:27:31 2011 +0100
+++ b/web/component.py	Fri Nov 04 13:00:30 2011 +0100
@@ -166,7 +166,7 @@
         start = max(0, start - self.page_size)
         stop = start + self.page_size - 1
         url = xml_escape(self.page_url(path, params, start, stop))
-        return self.previous_page_link_templ % (url, title, content)
+        return self.previous_page_link_templ % (url, self._cw._(title), content)
 
     def next_link(self, path, params, content=None, title=_('next_results')):
         if not content:
@@ -176,7 +176,7 @@
             return self.no_next_page_link
         stop = start + self.page_size - 1
         url = xml_escape(self.page_url(path, params, start, stop))
-        return self.next_page_link_templ % (url, title, content)
+        return self.next_page_link_templ % (url, self._cw._(title), content)
 
 
 # new contextual components system #############################################