From ef4b6a36e5aea17b09d7875281da7906443282d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Sun, 10 Sep 2023 13:49:14 +0200 Subject: [PATCH] discover: Fix text direction of translated text --- weblate_web/templates/discover.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/weblate_web/templates/discover.html b/weblate_web/templates/discover.html index 9018083374..1508adf979 100644 --- a/weblate_web/templates/discover.html +++ b/weblate_web/templates/discover.html @@ -52,7 +52,14 @@

{% block title %}{% trans "Discover Weblate" %}{

{{ service.site_title }}

{% if service.discover_text %} -

{{ service.get_discover_text }}

+ {% with discover_text=service.get_discover_text %} + {% if service.discover_text == discover_text %} +

{{ service.get_discover_text }}

+ {% else %} + {# Localized text for Hosted Weblate #} +

{{ service.get_discover_text }}

+ {% endif %} + {% endwith %} {% endif %}

{% for project in service.matched_projects %}