[tor-commits] [community/translations] make translated strings appear in homepage. will-fix: https://gitlab.torproject.org/tpo/web/community/-/issues/172

emmapeel at torproject.org emmapeel at torproject.org
Sat Mar 27 07:08:12 UTC 2021


commit f6c0a6a5361a9ea5de7e134ae74e9442254086bc
Author: emma peel <emma.peel at riseup.net>
Date:   Sat Mar 27 07:52:33 2021 +0100

    make translated strings appear in homepage. will-fix: https://gitlab.torproject.org/tpo/web/community/-/issues/172
---
 templates/home.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/templates/home.html b/templates/home.html
index 2ceb15e..09449f0 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -11,13 +11,13 @@
           <div class="col-lg-4 col-md-6 col-sm-12 py-4">
             <div class="card h-100 p-2">
               <div class="card-body">
-                <h2 class="card-title ">{{ child.title }}</h2>
-                <p class="card-text">{{ child.subtitle }}</p>
+                <h2 class="card-title ">{{ _(child.title) }}</h2>
+                <p class="card-text">{{ _(child.subtitle) }}</p>
                 <div class="illo-container">
-                  <img src="/static/images/home/png/{{ child.section_id }}.png" class="img-fluid" alt="{{ child.section }}" />
+                  <img src="/static/images/home/png/{{ child.section_id }}.png" class="img-fluid" alt="{{ _(child.section) }}" />
                 </div>
               </div>
-              <a href="{{ child.path|url }}" class="btn btn-primary">{{ child.cta }}</a>
+              <a href="{{ child.path|url }}" class="btn btn-primary">{{ _(child.cta) }}</a>
             </div>
           </div>
         {% endfor %}



More information about the tor-commits mailing list