[tor-commits] [community/master] make translated strings appear in homepage. will-fix: https://gitlab.torproject.org/tpo/web/community/-/issues/172
hiro at torproject.org
hiro at torproject.org
Mon Mar 29 14:36:46 UTC 2021
commit e56b1fbda7331243e9481e4d8faee8624d945d5d
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