Translatable subproject page
This commit is contained in:
parent
077a58afa1
commit
d44d4c80d4
@ -9,11 +9,21 @@
|
|||||||
<p>{% trans "Instructions for translators:" %} <a href="{{ object.project.instructions }}">{{ object.project.instructions }}</a></p>
|
<p>{% trans "Instructions for translators:" %} <a href="{{ object.project.instructions }}">{{ object.project.instructions }}</a></p>
|
||||||
<p>{% trans "Git repository:" %} <code>{{ object.repo }}</code> ({% blocktrans with object.branch as branch %}{{ branch }} brach{% endblocktrans %})</p>
|
<p>{% trans "Git repository:" %} <code>{{ object.repo }}</code> ({% blocktrans with object.branch as branch %}{{ branch }} brach{% endblocktrans %})</p>
|
||||||
|
|
||||||
<h2>Translations</h2>
|
<h2>{% trans "Translations" %}</h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{% for trans in object.translation_set.all %}
|
{% for trans in object.translation_set.all %}
|
||||||
<li><a href="{{ trans.get_absolute_url }}">{{ trans.language.name }} ({{ trans.translated }}% translated{% if trans.fuzzy %}, {{ trans.fuzzy }}% fuzzy{% endif %})</a></li>
|
<li><a href="{{ trans.get_absolute_url }}">{{ trans.language.name }}
|
||||||
|
{% if trans.fuzzy %}
|
||||||
|
{% blocktrans with trans.translated as translated and trans.fuzzy as fuzzy %}
|
||||||
|
({{ translated }}% translated, {{ fuzzy }}% fuzzy)
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% else %}
|
||||||
|
{% blocktrans with trans.translated as translated %}
|
||||||
|
({{ translated }}% translated)
|
||||||
|
{% endblocktrans %}
|
||||||
|
{% endif %}
|
||||||
|
</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user