{% load i18n %}
{% load permissions %}

{% with object.project as object %}
{% include "project_info.html" %}
{% endwith %}

<tr>
<th>{% trans "Translation process" %}</th>
<td colspan="2">
<ul>
{% if object.suggestion_voting and object.suggestion_autoaccept %}
<li>{% trans "Translations can only be done through suggestions." %}</li>
<li>{% blocktrans count count=object.suggestion_autoaccept %}Suggestions with one vote are automatically accepted as translations.{% plural %}Suggestions are automatically accepted as translations once they have {{ count }} votes.{% endblocktrans %}</li>
{% else %}
<li>{% trans "Translations can be made directly." %}</li>
{% if object.enable_suggestions %}
<li>{% trans "Translation suggestions can be made." %}</li>
{% else %}
<li>{% trans "Translation suggestions are turned off." %}</li>
{% endif %}
{% endif %}
{% if object.project.access_control %}
<li>{% trans "Only chosen users can contribute." %}</li>
{% else %}
<li>{% trans "Any authenticated user can contribute." %}</li>
{% endif %}
{% if object.template %}
<li>{% trans "The translation uses monolingual files." %}</li>
{% if object.edit_template %}
<li>{% trans "The translation base language is editable." %}</li>
{% else %}
<li>{% trans "The translation base language can not be edited." %}</li>
{% endif %}
{% else %}
<li>{% trans "The translation uses bilingual files." %}</li>
{% endif %}
</ul>
</td>


{% if object.license %}
<tr>
<th>{% trans "Translation license" %}</th>
<td colspan="2">
{% if object.license_url %}
<a href="{{ object.license_url }}">{{ object.get_license_display }}</a>
{% else %}
{{ object.get_license_display }}
{% endif %}
</td>
</tr>
{% endif %}

{% if object.agreement %}
<tr>
<th>{% trans "Contributor agreement" %}</th>
<td><a class="btn btn-primary" href="{% url 'contributor-agreement' project=object.project.slug component=object.slug %}">{% trans "View" %}</a></td>
</tr>
{% endif %}

{% include "snippets/git-info.html" %}

<tr>
<th>{% trans "Filemask" %}</th><td><code>{{ object.filemask }}</code></td>
</tr>

{% if object.template %}
<tr>
<th>{% trans "Monolingual base language file" %}</th><td><code>{{ object.template }}</code></td>
</tr>
{% endif %}
