diff -r 0d9ec80400cb django/contrib/admin/sites.py
a
|
b
|
|
356 | 356 | app_dict[app_label]['models'].append(model_dict) |
357 | 357 | else: |
358 | 358 | app_dict[app_label] = { |
359 | | 'name': app_label.title(), |
| 359 | 'name': _(app_label).title(), |
360 | 360 | 'app_url': app_label + '/', |
361 | 361 | 'has_module_perms': has_module_perms, |
362 | 362 | 'models': [model_dict], |
… |
… |
|
420 | 420 | # something to display, add in the necessary meta |
421 | 421 | # information. |
422 | 422 | app_dict = { |
423 | | 'name': app_label.title(), |
| 423 | 'name': _(app_label).title(), |
424 | 424 | 'app_url': '', |
425 | 425 | 'has_module_perms': has_module_perms, |
426 | 426 | 'models': [model_dict], |
… |
… |
|
430 | 430 | # Sort the models alphabetically within each app. |
431 | 431 | app_dict['models'].sort(lambda x, y: cmp(x['name'], y['name'])) |
432 | 432 | context = { |
433 | | 'title': _('%s administration') % capfirst(app_label), |
| 433 | 'title': _('%(app_label)s administration') % {'app_label': capfirst(_(app_label))}, |
434 | 434 | 'app_list': [app_dict], |
435 | 435 | 'root_path': self.root_path, |
436 | 436 | } |
diff -r 0d9ec80400cb 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 0d9ec80400cb django/contrib/admin/templates/admin/auth/user/change_password.html
a
|
b
|
|
9 | 9 | {% block breadcrumbs %}{% if not is_popup %} |
10 | 10 | <div class="breadcrumbs"> |
11 | 11 | <a href="../../../../">{% trans "Home" %}</a> › |
12 | | <a href="../../../">{{ opts.app_label|capfirst|escape }}</a> › |
| 12 | <a href="../../../">{% filter capfirst %}{% trans opts.app_label %}{% endfilter %}</a> › |
13 | 13 | <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> › |
14 | 14 | <a href="../">{{ original|truncatewords:"18" }}</a> › |
15 | 15 | {% trans 'Change password' %} |
diff -r 0d9ec80400cb django/contrib/admin/templates/admin/change_form.html
a
|
b
|
|
16 | 16 | {% block breadcrumbs %}{% if not is_popup %} |
17 | 17 | <div class="breadcrumbs"> |
18 | 18 | <a href="../../../">{% trans "Home" %}</a> › |
19 | | <a href="../../">{{ app_label|capfirst|escape }}</a> › |
20 | | {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} › |
| 19 | <a href="../../">{% filter capfirst %}{% trans app_label %}{% endfilter %}</a> › |
| 20 | {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} › |
21 | 21 | {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %} |
22 | 22 | </div> |
23 | 23 | {% endif %}{% endblock %} |
diff -r 0d9ec80400cb django/contrib/admin/templates/admin/change_list.html
a
|
b
|
|
27 | 27 | </a> |
28 | 28 | › |
29 | 29 | <a href="../"> |
30 | | {{ app_label|capfirst }} |
| 30 | {% filter capfirst %}{% trans app_label %}{% endfilter %} |
31 | 31 | </a> |
32 | 32 | › |
33 | 33 | {{ cl.opts.verbose_name_plural|capfirst }} |
diff -r 0d9ec80400cb 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 0d9ec80400cb 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 0d9ec80400cb 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 0d9ec80400cb 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 %} |