{% extends "base.html" %} {% load i18n %} {% load pagination_tags %} {% load search_filters %} {% load resources_common_tags %} {% block breadcrumb %}{% endblock %} {% block title %}{{ block.super }} | {% trans "Search Translations" %}{% endblock %} {% block body_class %}search project_list{% endblock %} {% block content_title %}

{% trans "Search Translations" %} {% if translations.count %}({{ translations.count }}) {% endif %}

{% endblock %} {% block content %}
{% include "search_translation_form.html" %}
{% autopaginate translations 25 %} {% if query %} {% if translations %}
{% for translation in translations %} {% with translation.language as translation_language %} {% ifchanged translation_language %}

{% blocktrans with source_language as source_language %}{{ source_language }} → {{ translation_language }}{% endblocktrans %}

{% endifchanged %}
{% with translation.source_entity as source_entity %} {% highlight terms as source_highlighted %} {{ source_entity|entity_translation:source_language }} {% endhighlight %}

{{ source_highlighted.highlighted }}

{{ translation.string }}

{% if source_entity.description %}

{% trans "Description:"{{ source_entity.string }}

{% endif %} {% with source_entity.resource as resource %}

{% trans "Location:" %} {{ resource.project }} » {{ resource.name }}

{% endwith %} {% endwith %} {% endwith %}
{% endfor %}
{% else %} {% trans "Tough luck! No translations obtained." %} {% endif %} {% endif %} {% endblock %} {% block content_footer %} {% endblock %}