diff -r 4d0e5fb0c33d django/contrib/admin/sites.py
a
|
b
|
|
349 | 349 | app_dict[app_label]['models'].append(model_dict) |
350 | 350 | else: |
351 | 351 | app_dict[app_label] = { |
352 | | 'name': app_label.title(), |
| 352 | 'name': _(app_label).title(), |
353 | 353 | 'app_url': app_label + '/', |
354 | 354 | 'has_module_perms': has_module_perms, |
355 | 355 | 'models': [model_dict], |
… |
… |
|
413 | 413 | # something to display, add in the necessary meta |
414 | 414 | # information. |
415 | 415 | app_dict = { |
416 | | 'name': app_label.title(), |
| 416 | 'name': _(app_label).title(), |
417 | 417 | 'app_url': '', |
418 | 418 | 'has_module_perms': has_module_perms, |
419 | 419 | 'models': [model_dict], |
… |
… |
|
423 | 423 | # Sort the models alphabetically within each app. |
424 | 424 | app_dict['models'].sort(lambda x, y: cmp(x['name'], y['name'])) |
425 | 425 | context = { |
426 | | 'title': _('%s administration') % capfirst(app_label), |
| 426 | 'title': _('%(app_label)s administration') % {'app_label': capfirst(_(app_label))}, |
427 | 427 | 'app_list': [app_dict], |
428 | 428 | 'root_path': self.root_path, |
429 | 429 | } |
diff -r 4d0e5fb0c33d 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 4d0e5fb0c33d 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 4d0e5fb0c33d 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 4d0e5fb0c33d django/contrib/admin/templates/admin/change_list.html
a
|
b
|
|
24 | 24 | <a href="../../"> |
25 | 25 | {% trans "Home" %} |
26 | 26 | </a> |
27 | | › |
| 27 | › |
28 | 28 | <a href="../"> |
29 | | {{ app_label|capfirst }} |
| 29 | {% filter capfirst %}{% trans app_label %}{% endfilter %} |
30 | 30 | </a> |
31 | | › |
| 31 | › |
32 | 32 | {{ cl.opts.verbose_name_plural|capfirst }} |
33 | 33 | </div> |
34 | 34 | {% endblock %} |
… |
… |
|
67 | 67 | </div> |
68 | 68 | {% endif %} |
69 | 69 | {% endblock %} |
70 | | |
| 70 | |
71 | 71 | <form action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}> |
72 | 72 | {% if cl.formset %} |
73 | 73 | {{ cl.formset.management_form }} |
diff -r 4d0e5fb0c33d 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 4d0e5fb0c33d 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> |
diff -r 4d0e5fb0c33d 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 4d0e5fb0c33d 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 %} |