Commits

Yan Chouinard committed f1d0125

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

Comments (0)

Files changed (3)

admin_tools/dashboard/templates/admin/app_index.html

 <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 %} 

admin_tools/dashboard/templates/admin_tools/dashboard/modules/app_list.html

 {% 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 %}

admin_tools/menu/templates/admin_tools/menu/item.html

-{% 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 %}