{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% load translations %}

{% block breadcrumbs_container %}
{% endblock %}

{% block content %}

<div class="row">

<div class="col-sm-3">
<img class="engage-icon" src="{% static 'weblate-128.png' %}" width="128" height="128" />
</div>

<div class="col-sm-9 engage">

<h1>{% blocktrans %}Get involved in {{ project }}.{% endblocktrans %}</h1>

<p>
{% blocktrans %}Hi, and thank you for your interest.{% endblocktrans %}
</p>
<p>
{% blocktrans %}{{ project }} is being translated using {{ weblate_name_link }}, a web tool designed to ease translating for both developers and translators.{% endblocktrans %}
</p>
<p>
{% if language %}
{% filter replace_english:language %}
{% comment %}Translators: line of text in engagement page, please use your language name instead of English{% endcomment %}
{% blocktrans %}The translation project for {{ project }} into English currently contains {{ total }} strings for translation and is {{ percent }}% complete.{% endblocktrans %}
{% endfilter %}
{% else %}
{% blocktrans count languages=languages  %}The translation project for {{ project }} currently contains {{ total }} strings for translation and is being translated into {{ languages }} language. Overall, these translations are {{ percent }}% complete.{% plural %}The translation project for {{ project }} currently contains {{ total }} strings for translation and is being translated into {{ languages }} languages. Overall, these translations are {{ percent }}% complete.{% endblocktrans %}
{% endif %}
</p>
<p>
{% blocktrans %}If you would like to contribute to translation of {{ project }}, you need to register on this server.{% endblocktrans %}
</p>
{% if object.access_control %}
<p>
{% trans "This translation is open only to a limited group of translators, if you want to contribute please get in touch with the project maintainers." %}
</p>
{% endif %}
{% if not user.is_authenticated %}
<p>
{% blocktrans %}Once you have activated your account, proceed to the translation section.{% endblocktrans %}
</p>
{% endif %}

<p>
{% if not user.is_authenticated %}
<a href="{% url 'register' %}" class="btn btn-success btn-lg"><i class="fa fa-sign-in"></i> {% trans "Register" %}</a>
{% endif %}
<a id="engage-project" href="{{ object.get_absolute_url }}" class="btn btn-success btn-lg"><i class="fa fa-edit"></i> {% trans "Translate" %}</a>
<a href="{{ object.get_absolute_url }}#languages" class="btn btn-success btn-lg"><i class="fa fa-language"></i> {% trans "View project languages" %}</a>
</p>

</div>
</div>
{% endblock %}
