Commits

Anonymous committed 4daaacf

Enabled app_name translation and recompiled messages

Comments (0)

Files changed (4)

admin_tools/dashboard/templates/admin/app_index.html

-{% extends "admin/index.html" %} 
-{% load i18n admin_tools_dashboard_tags %} 
+{% extends "admin/index.html" %}
+{% load i18n admin_tools_dashboard_tags %}
 
 {% if not is_popup %}
 
 {% block dashboard_css %}{% admin_tools_render_dashboard_css 'app_index' %}{% endblock %}
 {% block breadcrumbs %}
 <div class="breadcrumbs"><a href="../">
-{% trans "Home" %}</a> &rsaquo; 
+{% trans "Home" %}</a> &rsaquo;
 {% for app in app_list %}
-{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}
+{% trans app.name %}
 {% endfor %}</div>{% endblock %}
 
-{% endif %} 
+{% endif %}
 
 {% block content %}
 {% admin_tools_render_dashboard 'app_index' %}

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 %}
Add a comment to this file

admin_tools/locale/pl/LC_MESSAGES/django.mo

Binary file modified.

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 %}<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 %}<span class="icon"></span>{% endif %}{% trans item.title %}</a>
     {% if item.children %}
     <ul>
         {% for child_item in item.children %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.