Make some template parts translatable

This commit is contained in:
HackerNCoder 2022-09-24 15:45:44 +02:00
parent 0c00276859
commit 156d5046c1
2 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@
<div class="d-flex h-100"> <div class="d-flex h-100">
<div class="my-4 my-lg-auto w-100 text-center"> <div class="my-4 my-lg-auto w-100 text-center">
<h2 class="text-white mb-5">{{ project.title }}</h2> <h2 class="text-white mb-5">{{ project.title }}</h2>
<a href="{{ project|url }}" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i> Details</a> <a href="{{ project|url }}" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i> {{ _("Details") }}</a>
</div> </div>
</div> </div>
</div> </div>

View file

@ -8,17 +8,17 @@
<img class="img-fluid" src="{{this.attachments.images.first()|url}}" alt=""> <img class="img-fluid" src="{{this.attachments.images.first()|url}}" alt="">
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<h3 class="my-3">Project Description</h3> <h3 class="my-3">{{ _("Project Description") }}</h3>
<p>{{this.body}}</p> <p>{{this.body}}</p>
<h3 class="my-3">Weblate status</h3> <h3 class="my-3">{{ _("Weblate status") }}</h3>
<a class="crop" href="https://littleroot.net/weblate/engage/{{ this.weblate }}/"> <a class="crop" href="https://littleroot.net/weblate/engage/{{ this.weblate }}/">
<img src="https://littleroot.net/weblate/widgets/{{ this.weblate }}/-/multi-auto.svg" alt="Translation status" /> <img src="https://littleroot.net/weblate/widgets/{{ this.weblate }}/-/multi-auto.svg" alt="Translation status" />
</a> </a>
<h3 class="my-3">Project Details</h3> <h3 class="my-3">{{ _("Project Details") }}</h3>
<div class="w-100 text-center"> <div class="w-100 text-center">
<div class="mx-auto" style="width: 210px;"> <div class="mx-auto" style="width: 210px;">
<a href="https://littleroot.net/weblate/engage/{{ this.weblate }}/" class="btn btn-primary w-100 mb-2 px-0"><i class="fa fa-language" aria-hidden="true"></i> Translate</a> <a href="https://littleroot.net/weblate/engage/{{ this.weblate }}/" class="btn btn-primary w-100 mb-2 px-0"><i class="fa fa-language" aria-hidden="true"></i> {{ _("Translate") }}</a>
<a href="{{this.website}}" class="px-0 btn btn-primary w-100"><i class="fa fa-external-link" aria-hidden="true"></i> Download</a> <a href="{{this.website}}" class="px-0 btn btn-primary w-100"><i class="fa fa-external-link" aria-hidden="true"></i> {{ _("Download") }}</a>
</div> </div>
</div> </div>
</div> </div>