Translate language name

This commit is contained in:
Michal Čihař 2012-03-02 15:29:58 +01:00
parent 5d1955e688
commit da7e13bfe1
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<ul>
{% for trans in object.translation_set.all %}
<li><a href="{{ trans.get_absolute_url }}">{{ trans.language.name }}
<li><a href="{{ trans.get_absolute_url }}">{% trans trans.language.name %}
{% if trans.fuzzy %}
{% blocktrans with trans.get_translated_percent as translated and trans.get_fuzzy_percent as fuzzy %}({{ translated }}% translated, {{ fuzzy }}% fuzzy){% endblocktrans %}
{% else %}

View File

@ -5,7 +5,7 @@
{% block breadcums %}
<li><a href="{{ unit.translation.subproject.project.get_absolute_url }}">{{ unit.translation.subproject.project }}</a></li>
<li><a href="{{ unit.translation.subproject.get_absolute_url }}">{{ unit.translation.subproject.name }}</a></li>
<li><a href="{{ unit.translation.get_absolute_url }}">{{ unit.translation.language.name }}</a></li>
<li><a href="{{ unit.translation.get_absolute_url }}">{% trans unit.translation.language.name %}</a></li>
<li><a href="{{ unit.translation.get_translate_url }}">{% trans "translate" %}</a></li>
{% endblock %}

View File

@ -4,7 +4,7 @@
{% block breadcums %}
<li><a href="{{ object.subproject.project.get_absolute_url }}">{{ object.subproject.project }}</a></li>
<li><a href="{{ object.subproject.get_absolute_url }}">{{ object.subproject.name }}</a></li>
<li><a href="{{ object.get_absolute_url }}">{{ object.language.name }}</a></li>
<li><a href="{{ object.get_absolute_url }}">{% trans object.language.name %}</a></li>
{% endblock %}
{% block content %}