{% load i18n %}
{% load translations %}

{% if analysis.source_language %}

    <p>{% trans "The component contains translation file for the source language." %}

    <p>{% trans "Please consider the following:" %}</p>

    <ul>
    {% if not analysis.monolingual %}
      <li>{% trans "You might be using a monolingual translation file as a bilingual one. If that is the case, please set the monolingual base language file location." %} {% documentation_icon "formats" "bimono" %}</li>
    {% endif %}
    <li>{% trans "In case translation to the source language is desired, please change the source language in the component settings." %} {% documentation_icon "admin/projects" "component-source_language" %}</li>
    <li>{% trans "If the translation file for the source language is not needed, please remove it from the repository." %}</li>
    <li>{% trans "If the translation file for the source language is needed, but should be ignored by Weblate, please adjust the language filter to exclude it." %} {% documentation_icon "admin/projects" "component-language_regex" %}</li>

    </ul>


{% else %}

    <p>
        {% trans "The component contains several translation files mapped to a single language in Weblate." %}
        {% trans "Please fix this by removing one of the translation files." %}
    </p>
    {% if analysis.default_country %}
        <p>{% trans "Please consider the following:" %}</p>

        <ul>
        <li>{% trans "Avoid having translation files for both the plain language code and its equivalent territory designation (for example de and de_DE)." %}</li>
        </ul>
    {% endif %}

{% endif %}

<p>{% trans "The following occurrences were found:" %}</p>

<table class="table table-condensed">
<thead>
<tr><th>{% trans "Language" %}</th><th>{% trans "Language codes" %}</th></tr>
</thead>
<tbody>
{% for occurrence in occurrences %}
<tr>
    <td>{{ occurrence.language }}</td>
    <td>{{ occurrence.codes }}</td>
</tr>
{% endfor %}
</tbody>
</table>

{% include "trans/alert/occurrences-limit.html" %}
