[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit f6c0a6a5361a9ea5de7e134ae74e9442254086bc
Author: emma peel <emma.peel@xxxxxxxxxx>
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 %}

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits