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

[tor-commits] [community/master] replace section with path to prevent translation. closes https://gitlab.torproject.org/tpo/web/community/-/issues/234



commit 325ac819df7962feeca9d542aca0525c9d199410
Author: emma peel <emma.peel@xxxxxxxxxx>
Date:   Wed Oct 20 21:22:13 2021 +0200

    replace section with path to prevent translation. closes https://gitlab.torproject.org/tpo/web/community/-/issues/234
---
 templates/home.html             | 2 +-
 templates/localization.html     | 4 ++--
 templates/two-columns-page.html | 4 ++--
 templates/user-research.html    | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/templates/home.html b/templates/home.html
index b81314c..f95a873 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -14,7 +14,7 @@
                 <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{{ this.path }}.png" class="img-fluid" alt="{{ _(child.section) }}" />
                 </div>
               </div>
               <a href="{{ child.path|url }}" class="btn btn-primary">{{ _(child.cta) }}</a>
diff --git a/templates/localization.html b/templates/localization.html
index 7a17aba..1d0056b 100644
--- a/templates/localization.html
+++ b/templates/localization.html
@@ -4,7 +4,7 @@
       {{ this.body }}
     </div>
     <div class="col-lg-5">
-      <img src="/static/images/home/png/{{ this.section_id }}.png" class="img-fluid" alt="{{ _(this.section) }}" />
+      <img src="/static/images/home/png{{ this.path }}.png" class="img-fluid" alt="{{ _(this.section_id) }}" />
     </div>
   </div>
   <div class="row">
@@ -29,7 +29,7 @@
       {{ _('Localization is a continuous process across our applications. Notice any improvements we could make to our translations? Open a ticket, reach out to us, or become part of our translators squad.') }}
     </p>
     <a class="btn btn-lg btn-outline-primary mx-auto my-3" href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-l10n";>
-          {{ _('Translators mailing list') }}<i class="ml-3 pt-2 fas fa-arrow-right"></i>
+          {{ _('Join Tor Translators mailing list') }}<i class="ml-3 pt-2 fas fa-arrow-right"></i>
     </a>
   </div>
 </div>
diff --git a/templates/two-columns-page.html b/templates/two-columns-page.html
index d71e970..0f48cfd 100644
--- a/templates/two-columns-page.html
+++ b/templates/two-columns-page.html
@@ -25,9 +25,9 @@
 
     <div class="card mt-5">
       <ul class="list-group list-group-flush">
-        <!--li class="list-group-item"><a><span class="card-text text-muted">{{ _("Contributors to this page:") }} <a href="#" title="#">cypherpunk</a></span></li-->
+        <!--li class="list-group-item"><a><span class="card-text text-muted">Contributors to this page: <a href="#" title="#">cypherpunk</a></span></li-->
         <li class="list-group-item">
-          <a href="{{ this.parent|url }}">{{ _("Back to previous page: ") }}{{ this.parent.title }}</a> - <a href="https://github.com/torproject/community/edit/master/content{{ this.path }}/contents.lr">{{ _("Edit this page") }}</a>
+          <a href="{{ this.parent|url }}">{{ _("Back to previous page: ") }} {{ this.parent.title }}</a> - <a href="https://github.com/torproject/community/edit/master/content{{ this.path }}/contents.lr">{{ _("Edit this page") }}</a>
         </li>
       </ul>
     </div>
diff --git a/templates/user-research.html b/templates/user-research.html
index 339cca3..903831a 100644
--- a/templates/user-research.html
+++ b/templates/user-research.html
@@ -4,7 +4,7 @@
       {{ this.body }}
     </div>
     <div class="col-lg-5">
-      <img src="/static/images/home/png/{{ this.section_id }}.png" class="img-fluid" alt="{{ _(this.section) }}" />
+      <img src="/static/images/home/png{{ this.path }}.png" class="img-fluid" alt="{{ _(this.section) }}" />
     </div>
   </div>
   <div class="row">

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