diff -r f44ec14ec084 django/contrib/admin/sites.py
|
a
|
b
|
|
| 318 | 318 | app_dict[app_label]['models'].append(model_dict) |
| 319 | 319 | else: |
| 320 | 320 | app_dict[app_label] = { |
| 321 | | 'name': app_label.title(), |
| | 321 | 'name': _(app_label).title(), |
| 322 | 322 | 'app_url': app_label + '/', |
| 323 | 323 | 'has_module_perms': has_module_perms, |
| 324 | 324 | 'models': [model_dict], |
| … |
… |
|
| 383 | 383 | # something to display, add in the necessary meta |
| 384 | 384 | # information. |
| 385 | 385 | app_dict = { |
| 386 | | 'name': app_label.title(), |
| | 386 | 'name': _(app_label).title(), |
| 387 | 387 | 'app_url': '', |
| 388 | 388 | 'has_module_perms': has_module_perms, |
| 389 | 389 | 'models': [model_dict], |
| … |
… |
|
| 393 | 393 | # Sort the models alphabetically within each app. |
| 394 | 394 | app_dict['models'].sort(lambda x, y: cmp(x['name'], y['name'])) |
| 395 | 395 | context = { |
| 396 | | 'title': _('%s administration') % capfirst(app_label), |
| | 396 | 'title': _('%(app_label)s administration') % {'app_label': capfirst(_(app_label))}, |
| 397 | 397 | 'app_list': [app_dict], |
| 398 | 398 | 'root_path': self.root_path, |
| 399 | 399 | } |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/app_index.html
|
a
|
b
|
|
| 7 | 7 | <div class="breadcrumbs"><a href="../"> |
| 8 | 8 | {% trans "Home" %}</a> › |
| 9 | 9 | {% for app in app_list %} |
| 10 | | {% blocktrans with app.name as name %}{{ name }}{% endblocktrans %} |
| | 10 | {{ app.name }} |
| 11 | 11 | {% endfor %}</div>{% endblock %} |
| 12 | 12 | |
| 13 | 13 | {% endif %} |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/auth/user/change_password.html
|
a
|
b
|
|
| 8 | 8 | {% block breadcrumbs %}{% if not is_popup %} |
| 9 | 9 | <div class="breadcrumbs"> |
| 10 | 10 | <a href="../../../../">{% trans "Home" %}</a> › |
| 11 | | <a href="../../../">{{ opts.app_label|capfirst|escape }}</a> › |
| | 11 | <a href="../../../">{% filter capfirst %}{% trans opts.app_label %}{% endfilter %}</a> › |
| 12 | 12 | <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> › |
| 13 | 13 | <a href="../">{{ original|truncatewords:"18" }}</a> › |
| 14 | 14 | {% trans 'Change password' %} |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/change_form.html
|
a
|
b
|
|
| 15 | 15 | {% block breadcrumbs %}{% if not is_popup %} |
| 16 | 16 | <div class="breadcrumbs"> |
| 17 | 17 | <a href="../../../">{% trans "Home" %}</a> › |
| 18 | | <a href="../../">{{ app_label|capfirst|escape }}</a> › |
| 19 | | {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} › |
| | 18 | <a href="../../">{% filter capfirst %}{% trans app_label %}{% endfilter %}</a> › |
| | 19 | {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} › |
| 20 | 20 | {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %} |
| 21 | 21 | </div> |
| 22 | 22 | {% endif %}{% endblock %} |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/change_list.html
|
a
|
b
|
|
| 19 | 19 | <a href="../../"> |
| 20 | 20 | {% trans "Home" %} |
| 21 | 21 | </a> |
| 22 | | › |
| | 22 | › |
| 23 | 23 | <a href="../"> |
| 24 | | {{ app_label|capfirst }} |
| | 24 | {% filter capfirst %}{% trans app_label %}{% endfilter %} |
| 25 | 25 | </a> |
| 26 | | › |
| | 26 | › |
| 27 | 27 | {{ cl.opts.verbose_name_plural|capfirst }} |
| 28 | 28 | </div> |
| 29 | 29 | {% endblock %} |
| … |
… |
|
| 62 | 62 | </div> |
| 63 | 63 | {% endif %} |
| 64 | 64 | {% endblock %} |
| 65 | | |
| | 65 | |
| 66 | 66 | <form action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}> |
| 67 | 67 | {% if cl.formset %} |
| 68 | 68 | {{ cl.formset.management_form }} |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/delete_confirmation.html
|
a
|
b
|
|
| 4 | 4 | {% block breadcrumbs %} |
| 5 | 5 | <div class="breadcrumbs"> |
| 6 | 6 | <a href="../../../../">{% trans "Home" %}</a> › |
| 7 | | <a href="../../../">{{ app_label|capfirst }}</a> › |
| | 7 | <a href="../../../">{% filter capfirst %}{% trans app_label %}{% endfilter %}</a> › |
| 8 | 8 | <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> › |
| 9 | 9 | <a href="../">{{ object|truncatewords:"18" }}</a> › |
| 10 | 10 | {% trans 'Delete' %} |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/delete_selected_confirmation.html
|
a
|
b
|
|
| 4 | 4 | {% block breadcrumbs %} |
| 5 | 5 | <div class="breadcrumbs"> |
| 6 | 6 | <a href="../../">{% trans "Home" %}</a> › |
| 7 | | <a href="../">{{ app_label|capfirst }}</a> › |
| | 7 | <a href="../">{% filter capfirst %}{% trans app_label %}{% endfilter %}</a> › |
| 8 | 8 | <a href="./">{{ opts.verbose_name_plural|capfirst }}</a> › |
| 9 | 9 | {% trans 'Delete multiple objects' %} |
| 10 | 10 | </div> |
| … |
… |
|
| 34 | 34 | </div> |
| 35 | 35 | </form> |
| 36 | 36 | {% endif %} |
| 37 | | {% endblock %} |
| 38 | | No newline at end of file |
| | 37 | {% endblock %} |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/index.html
|
a
|
b
|
|
| 15 | 15 | {% if app_list %} |
| 16 | 16 | {% for app in app_list %} |
| 17 | 17 | <div class="module"> |
| 18 | | <table summary="{% blocktrans with app.name as name %}Models available in the {{ name }} application.{% endblocktrans %}"> |
| 19 | | <caption><a href="{{ app.app_url }}" class="section">{% blocktrans with app.name as name %}{{ name }}{% endblocktrans %}</a></caption> |
| | 18 | <table summary="Models available in the {% trans app.name %} application."> |
| | 19 | <caption><a href="{{ app.app_url }}" class="section">{{ app.name }}</a></caption> |
| 20 | 20 | {% for model in app.models %} |
| 21 | 21 | <tr> |
| 22 | 22 | {% if model.perms.change %} |
diff -r f44ec14ec084 django/contrib/admin/templates/admin/object_history.html
|
a
|
b
|
|
| 3 | 3 | |
| 4 | 4 | {% block breadcrumbs %} |
| 5 | 5 | <div class="breadcrumbs"> |
| 6 | | <a href="../../../../">{% trans 'Home' %}</a> › |
| 7 | | <a href="../../../">{{ app_label|capfirst }}</a> › |
| 8 | | <a href="../../">{{ module_name }}</a> › |
| 9 | | <a href="../">{{ object|truncatewords:"18" }}</a> › |
| | 6 | <a href="../../../../">{% trans 'Home' %}</a> › |
| | 7 | <a href="../../../">{% filter capfirst %}{% trans app_label %}{% endfilter %}</a> › |
| | 8 | <a href="../../">{{ module_name }}</a> › |
| | 9 | <a href="../">{{ object|truncatewords:"18" }}</a> › |
| 10 | 10 | {% trans 'History' %} |
| 11 | 11 | </div> |
| 12 | 12 | {% endblock %} |