Skip to content

Commit

Permalink
discover: Fix text direction of translated text
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Sep 10, 2023
1 parent 116442e commit ef4b6a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion weblate_web/templates/discover.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ <h1 class="section-title min-m">{% block title %}{% trans "Discover Weblate" %}{
</div>
<h2><a href="{{ service.site_url }}" target="_blank" rel="ugc" lang="en" dir="ltr">{{ service.site_title }}</a></h2>
{% if service.discover_text %}
<p lang="en" dir="ltr">{{ service.get_discover_text }}</p>
{% with discover_text=service.get_discover_text %}
{% if service.discover_text == discover_text %}
<p lang="en" dir="ltr">{{ service.get_discover_text }}</p>
{% else %}
{# Localized text for Hosted Weblate #}
<p>{{ service.get_discover_text }}</p>
{% endif %}
{% endwith %}
{% endif %}
<p lang="en" dir="ltr" class="projects">
{% for project in service.matched_projects %}
Expand Down

0 comments on commit ef4b6a3

Please sign in to comment.