[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tpo/master] make navigation text translatable
commit 30bbf8cc4fed38d9b061b9b0eef06d07e1a574ea
Author: emma peel <emma.peel@xxxxxxxxxx>
Date: Fri Oct 8 09:06:32 2021 +0200
make navigation text translatable
---
templates/macros/pagination.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html
index 2d69afd6..9dac1ccc 100644
--- a/templates/macros/pagination.html
+++ b/templates/macros/pagination.html
@@ -2,7 +2,7 @@
<nav aria-label="page navigation">
<ul class="pagination">
{% if pagination.has_prev %}
- <li class="page-item"><a class="page-link" href="{{ pagination.prev|url }}">Newer</a></li>
+ <li class="page-item"><a class="page-link" href="{{ pagination.prev|url }}">{{ _('Newer') }}</a></li>
{% if pagination.for_page(pagination.page-2).has_prev %}
{% set goback = 2 %}
{% else %}
@@ -42,7 +42,7 @@
{% endif %}
{% else %}
- <li class="page-item disabled"><a class="page-link" href="">Newer</a></li>
+ <li class="page-item disabled"><a class="page-link" href="">{{ _('Newer') }}</a></li>
{% for i in range(pagination.page, pagination.page+5)%}
{% set yearToShow = year-(i-1) %}
{% if yearToShow >= oldest %}
@@ -56,9 +56,9 @@
{% endif%}
{% if pagination.has_next %}
- <li class="page-item"><a class="page-link" href="{{ pagination.next|url }}">Older</a></li>
+ <li class="page-item"><a class="page-link" href="{{ pagination.next|url }}">{{ _('Older') }}</a></li>
{% else %}
- <li class="page-item disabled"><a class="page-link" href="">Older</a></li>
+ <li class="page-item disabled"><a class="page-link" href="">{{ _('Older') }}</a></li>
{% endif %}
</ul>
</nav>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits