Use i18n app name in app_list, menu and breadcrumb of app_index

This commit is contained in:
ychouinard 2013-04-07 01:45:47 -04:00
parent 7c5fcffd7f
commit 9c610ab880
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<div class="breadcrumbs"><a href="../">
{% trans "Home" %}</a> &rsaquo;
{% for app in app_list %}
{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
{% trans app.name %}
{% endfor %}</div>{% endblock %}
{% endif %}

View File

@ -2,7 +2,7 @@
{% load i18n %}
{% block module_content %}
{% for child in module.children %}
<h3><a href="{{ child.url }}">{{ child.title }}</a></h3>
<h3><a href="{{ child.url }}">{% trans child.title %}</a></h3>
<ul>
{% for model in child.models %}
{% spaceless %}

View File

@ -1,8 +1,8 @@
{% load admin_tools_menu_tags %}
{% load admin_tools_menu_tags i18n %}
{% spaceless %}
{% if not item.is_empty %}
<li class="menu-item{% ifequal index 1 %} first{% endifequal %}{% if not item.enabled %} disabled{% endif %}{% if selected %} selected{% endif %}{% if item.css_classes %} {{ item.css_classes|join:' ' }}{% endif %}">
<a href="{% if item.url and item.enabled %}{{ item.url }}{% else %}#{% endif %}"{% if item.description %} title="{{ item.description }}"{% endif %}{% if item.accesskey %} accesskey="{{ item.accesskey }}"{% endif %}>{% if item.children and item.enabled %}<span class="icon"></span>{% endif %}{{ item.title }}</a>
<a href="{% if item.url and item.enabled %}{{ item.url }}{% else %}#{% endif %}"{% if item.description %} title="{{ item.description }}"{% endif %}{% if item.accesskey %} accesskey="{{ item.accesskey }}"{% endif %}>{% if item.children and item.enabled %}<span class="icon"></span>{% endif %}{% trans item.title %}</a>
{% if item.children and item.enabled %}
<ul>
{% for child_item in item.children %}