[tor-commits] [community/translations] fix the pagenav for showing translated terms

emmapeel at torproject.org emmapeel at torproject.org
Sat Mar 27 07:32:35 UTC 2021


commit 5c40334929cc5deef49873dbcc2085b78b6c9be1
Author: emma peel <emma.peel at riseup.net>
Date:   Sat Mar 27 08:32:16 2021 +0100

    fix the pagenav for showing translated terms
---
 templates/pagenav.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/pagenav.html b/templates/pagenav.html
index 617242d..077df73 100644
--- a/templates/pagenav.html
+++ b/templates/pagenav.html
@@ -8,7 +8,7 @@
         <li{% if this.is_child_of(abs_path) %} class="nav-item active border-active" {% else %} class="nav-item" {% endif %}>
           {% set elm = site.get(item.path) %}
           {% if elm %}
-            <a class="nav-link" href="{{ elm.path|url }}">{{ item.label }}
+            <a class="nav-link" href="{{ elm.path|url }}">{{ _(item.label) }}
           {% endif %}
           {% if this.is_child_of(abs_path) %}
             <span class="sr-only">(current)</span>



More information about the tor-commits mailing list