Use specific language for weblate img and link

This commit is contained in:
HackerNCoder 2022-11-03 22:09:55 +01:00
parent e58537f756
commit 197e68d26a

View file

@ -21,8 +21,8 @@
</div> </div>
</div> </div>
<h3 class="my-3">{{ _("Weblate status") }}</h3> <h3 class="my-3">{{ _("Weblate status") }}</h3>
<a href="https://littleroot.net/weblate/engage/{{ this.weblate }}/"> <a href="https://littleroot.net/weblate/engage/{{ this.weblate }}/{% if this.alt != "en" %}{{this.alt}}/{% endif %}">
<img src="https://littleroot.net/weblate/widgets/{{ this.weblate }}/-/multi-auto.svg" alt="Translation status"> <img src="https://littleroot.net/weblate/widgets/{{ this.weblate }}/{% if this.alt != "en" %}{{this.alt}}{% else %}-{% endif %}/multi-auto.svg" alt="Translation status">
</a> </a>
<div class="mt-3 text-center"> <div class="mt-3 text-center">
<a href="https://littleroot.net/weblate/engage/{{ this.weblate }}/" class="btn btn-primary mb-2"><i class="fa fa-language" aria-hidden="true"></i> {{ _("Translate") }}</a> <a href="https://littleroot.net/weblate/engage/{{ this.weblate }}/" class="btn btn-primary mb-2"><i class="fa fa-language" aria-hidden="true"></i> {{ _("Translate") }}</a>