blog: make 'Next' and 'Prev' translatable

This commit is contained in:
erciccione 2021-06-26 13:19:23 +02:00
parent 0fcd167bb4
commit f29f5f7ffc
No known key found for this signature in database
GPG key ID: 762AF8C608E56CDF
2 changed files with 4 additions and 2 deletions

View file

@ -880,6 +880,8 @@ blog:
author: Posted by
date: Posted at
filter: "Filter by category:"
next: Next
previous: Prev
tags:

View file

@ -65,7 +65,7 @@ title: titles.blogbytag
{% if paginator.total_pages > 1 %}
<div class="page-numbers"><p>
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&laquo; Prev</a>
<a href="{{ paginator.previous_page_path | replace: '//', '/' }}">&laquo; {% t blog.prev %}</a>
{% else %}
<span>&laquo; Prev</span>
{% endif %}
@ -81,7 +81,7 @@ title: titles.blogbytag
{% endfor %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | replace: '//', '/' }}">Next &raquo;</a>
<a href="{{ paginator.next_page_path | replace: '//', '/' }}">{% t blog.next %} &raquo;</a>
{% else %}
<span>Next &raquo;</span>
{% endif %}