commit 83252fd4c04bfcd26c93990ed7e6e2c03f563e64 Author: emma peel emma.peel@riseup.net Date: Mon Mar 11 05:57:58 2019 +0100
translate link labels on navbar and footer --- templates/footer.html | 6 +++--- templates/navbar.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/templates/footer.html b/templates/footer.html index 3235767..1648b27 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -33,7 +33,7 @@ {% else %} <a class="nav-link text-light" href="{{ item.path }}"> {% endif %} - {{ item.label }} + {{ _(item.label) }} {% if this.is_child_of(item.path) %} <span class="sr-only">(current)</span> {% endif %} @@ -46,8 +46,8 @@ <div class="col-12 d-flex justify-content-center"> <div class="col-md-8 mt-5 pb-5 border"> <p class="text-primary-light text-uppercase">{{ _('Subscribe to our Newsletter') }}</p> - <p class="text-light">{{ _('Get monthly updates and opportunities from the Tor Project') }}:</p> - <p class="w"><a class="btn btn-small btn-dark mt-2 text-white text-uppercase active" role="button" aria-pressed="true" href="https://newsletter.torproject.org/">Sign up</a></p> + <p class="text-light">{{ _('Get monthly updates and opportunities from the Tor Project:') }}</p> + <p class="w"><a class="btn btn-small btn-dark mt-2 text-white text-uppercase active" role="button" aria-pressed="true" href="https://newsletter.torproject.org/">{{ _('Sign up') }}</a></p> </div> </div>
diff --git a/templates/navbar.html b/templates/navbar.html index a7466fb..1b7f712 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -27,7 +27,7 @@ {% else %} <a class="nav-link" href="{{ item.path }}"> {% endif %} - {{ item.label }} + {{ _(item.label) }} {% if this.path == item.path %} <span class="sr-only">(current)</span> {% endif %}
tor-commits@lists.torproject.org