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

<p>{% trans "The component contains several duplicated translation strings." %}</p>

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

<table class="table table-condensed">
<thead>
<tr><th>{% trans "Language" %}</th><th>{% trans "Source" %}</th></tr>
</thead>
<tbody>
{% for occurrence in occurrences %}
<tr>
<td>{{ occurrence.language }}</td>
<td>
{% if occurrence.unit  %}
<a href="{{ occurrence.unit.get_absolute_url }}">{% format_translation occurrence.unit.source occurrence.unit.translation.component.project.source_language %}</a>
{% else %}
{{ occurrence.source }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>

<p>{% trans "Please fix this by removing duplicated strings with same identifier from the translation files." %}</p>
