{% set dir = gettext("LTR") %} {% set direction = "rtl" if dir == "RTL" else "ltr" %} {% set align = "right" if dir == "RTL" else "left" %}
{% if results.error.code == 0 %} {% if suggestions.error.code == 0 and suggestions.suggest %}

{% trans %}Suggestions:{% endtrans %}

{% for suggestion_key, suggestion_item in suggestions.suggest.items %}

{{ forloop.counter }}.
{% trans %}word{% endtrans %} | {{ suggestion_key }}
{% for suggestion_sub_item in suggestion_item %}
{{ suggestion_sub_item }}
{% else %}
{% trans %}no suggestions!{% endtrans %}
{% endfor %}

{% endfor %}

{% endif %} {% if results.search.interval.total %}

{% trans %}Results{% endtrans %} ( {{ results.search.interval.start }} {% trans %} to {% endtrans %} {{ results.search.interval.end }} {% trans %} of {% endtrans %} {{ results.search.interval.total }} )


{% for translationresult_id, translationresult_content in results.search.translations.items() %}
{% trans %}Result n°{% endtrans %} {{ translationresult_id }} - {% if translationresult_content.aya %} {% trans %}Interpretation of{% endtrans %} ( {% if direction == "rtl" %} {{ translationresult_content.aya.sura_arabic_name }} {% else %} {{ translationresult_content.aya.sura_name }} {% endif %} {{ translationresult_content.aya.aya_id }} ) {% trans %}in{% endtrans %} {{ translationresult_content.info.language }} {% trans %}by{% endtrans %} {{ translationresult_content.info.author }} {% endif %}

[ {% for translation_word in translationresult_content.text.split(" ") %} {% if translation_word[0] in " " %} {{ translation_word | safe }} {% else %} {{ translation_word }} {% endif %} {% endfor %} ] {% if translationresult_content.aya %} - {% trans %}Interpretation of{% endtrans %} ( {% if direction == "rtl" %} {{ translationresult_content.aya.sura_name }} {% else %} {{ translationresult_content.aya.sura_name }} {% endif %} {{ translationresult_content.aya.aya_id }} ) {% endif %}


{% if translationresult_content.aya %}

[ {% for aya_word in translationresult_content.aya.text.split(" ") %} {% if aya_word[0] in " " %} {{ aya_word | safe }} {% else %} {{ aya_word }} {% endif %} {% endfor %} ] ({{ translationresult_content.aya.sura_arabic_name }} {{ translationresult_content.aya.aya_id }})


{% endif %}

{% trans %}Author{% endtrans %} | {{ translationresult_content.info.author }}
{% trans %}Language{% endtrans %} | {{ translationresult_content.info.language }}


{% endfor %}
{% block pages_bottom %} {% endblock %} {% else %}
{% trans %}Sorry! there is no results for this search query{% endtrans %}.
{% if extra_results.search.interval.total %}
{% trans %}You may search in Quran verses instead, there are{% endtrans %} {{ extra_results.search.interval.total }} {% trans %}results{% endtrans %}. {% trans %}Click to search!{% endtrans %}
{% endif %}
{% endif %} {% else %}
{% trans %}Error{% endtrans %} ({{ results.error.code }}) : {{ results.error.msg }}
{% endif %}