commit eab22215f65a123bc2893791759ab4b709a74523 Author: Pili Guerra pili@piliguerra.com Date: Thu May 30 15:22:21 2019 +0200
Localization minor fixes --- assets/static/images/home/png/localization.png | Bin 62740 -> 73494 bytes content/localization/current-status/contents.lr | 4 ++-- content/localization/pick-a-project/contents.lr | 17 ----------------- content/localization/translate-strings/contents.lr | 19 ------------------- .../localization/translation-problem/contents.lr | 2 +- templates/localization.html | 6 ++++-- 6 files changed, 7 insertions(+), 41 deletions(-)
diff --git a/assets/static/images/home/png/localization.png b/assets/static/images/home/png/localization.png index 4559eb2..9590a8e 100644 Binary files a/assets/static/images/home/png/localization.png and b/assets/static/images/home/png/localization.png differ diff --git a/content/localization/current-status/contents.lr b/content/localization/current-status/contents.lr index 8bc79ab..600c318 100644 --- a/content/localization/current-status/contents.lr +++ b/content/localization/current-status/contents.lr @@ -4,7 +4,7 @@ section_id: localization --- color: primary --- -_template: localization.html +_template: layout.html --- title: Current Status of Translations --- @@ -16,4 +16,4 @@ html: localization.html --- body:
-Graph will go here \ No newline at end of file +Coming soon... \ No newline at end of file diff --git a/content/localization/pick-a-project/contents.lr b/content/localization/pick-a-project/contents.lr deleted file mode 100644 index f8db961..0000000 --- a/content/localization/pick-a-project/contents.lr +++ /dev/null @@ -1,17 +0,0 @@ -section: localization ---- -section_id: localization ---- -color: primary ---- -_template: layout.html ---- -title: Pick a project ---- -subtitle: How to find things ... ---- -key: 3 ---- -html: localization.html ---- -body: diff --git a/content/localization/translate-strings/contents.lr b/content/localization/translate-strings/contents.lr deleted file mode 100644 index 7de36e3..0000000 --- a/content/localization/translate-strings/contents.lr +++ /dev/null @@ -1,19 +0,0 @@ -section: localization ---- -section_id: localization ---- -color: primary ---- -_template: layout.html ---- -title: Translate strings ---- -subtitle: How to translate ---- -key: 4 ---- -html: localization.html ---- -body: -The Tor Project translatable strings are spread over different projects in Transifex. -To find out about our priorities and translation needs you can read the [Tor Localization Lab wiki page](https://wiki.localizationlab.org/index.php/Tor) diff --git a/content/localization/translation-problem/contents.lr b/content/localization/translation-problem/contents.lr index 3593d6f..c5dccd0 100644 --- a/content/localization/translation-problem/contents.lr +++ b/content/localization/translation-problem/contents.lr @@ -10,7 +10,7 @@ title: Report a problem with a translation --- subtitle: Sometimes the translations of apps are not working correctly. Here you can learn to fix it. --- -key: 9 +key: 3 --- html: localization.html --- diff --git a/templates/localization.html b/templates/localization.html index a0bb3d0..fe54039 100644 --- a/templates/localization.html +++ b/templates/localization.html @@ -5,7 +5,9 @@ {{ this.body }} </div> <div class="col-4 bg-light"> - <p>Illustration area</p> + <div class="illo-container"> + <img src="/static/images/home/png/{{ this.section_id }}.png" class="img-fluid" alt="{{ this.section }}" /> + </div> </div> </div> <div class="row"> @@ -15,7 +17,7 @@ <div class="card-body"> <div class="card-body"> <h4 class="text-primary">.{{ child.key }}</h4> - <h4 class="card-title text-primary"><a href="/{{ this.alt}}{{ child.path }}">{{ _(child.title) }}</a></h4> + <h4 class="card-title text-primary"><a href="{{ child.path|url }}">{{ _(child.title) }}</a></h4> <p class="card-text">{{ _(child.subtitle) }}</p> </div> </div>
tor-commits@lists.torproject.org