Translate language name
This commit is contained in:
parent
5d1955e688
commit
da7e13bfe1
@ -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 %}
|
||||
|
@ -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 %}
|
||||
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user