Translatable subproject page

This commit is contained in:
Michal Čihař 2012-02-28 10:36:11 +01:00
parent 077a58afa1
commit d44d4c80d4

View File

@ -9,11 +9,21 @@
<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>
<h2>Translations</h2>
<h2>{% trans "Translations" %}</h2>
<ul>
{% 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 %}
</ul>