=== modified file 'django/contrib/admin/options.py'
|
|
|
521 | 521 | inline_admin_formsets.append(inline_admin_formset) |
522 | 522 | |
523 | 523 | c = template.RequestContext(request, { |
524 | | 'title': _('Add %s') % uncapfirst(opts.verbose_name), |
| 524 | 'title': capfirst(_('Add %s') % uncapfirst(opts.verbose_name)), |
525 | 525 | 'adminform': adminForm, |
526 | 526 | 'is_popup': request.REQUEST.has_key('_popup'), |
527 | 527 | 'media': media, |
… |
… |
|
596 | 596 | inline_admin_formsets.append(inline_admin_formset) |
597 | 597 | |
598 | 598 | c = template.RequestContext(request, { |
599 | | 'title': _('Change %s') % uncapfirst(opts.verbose_name), |
| 599 | 'title': capfirst(_('Change %s') % uncapfirst(opts.verbose_name)), |
600 | 600 | 'adminform': adminForm, |
601 | 601 | 'object_id': object_id, |
602 | 602 | 'original': obj, |
=== modified file 'django/contrib/admin/templates/admin/change_list.html'
|
|
|
15 | 15 | <div id="content-main"> |
16 | 16 | {% block object-tools %} |
17 | 17 | {% if has_add_permission %} |
18 | | <ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">{% blocktrans with cl.opts.verbose_name|uncapfirst|escape as name %}Add {{ name }}{% endblocktrans %}</a></li></ul> |
| 18 | <ul class="object-tools"><li><a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">{% filter capfirst %}{% blocktrans with cl.opts.verbose_name|uncapfirst|escape as name %}Add {{ name }}{% endblocktrans %}{% endfilter %}</a></li></ul> |
19 | 19 | {% endif %} |
20 | 20 | {% endblock %} |
21 | 21 | <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist"> |
=== modified file 'django/contrib/admin/templates/admin/pagination.html'
|
|
|
7 | 7 | {% endfor %} |
8 | 8 | {% endif %} |
9 | 9 | {% ifequal cl.result_count 1 %} |
10 | | {% blocktrans with cl.result_count as count and cl.opts.verbose_name|uncapfirst|escape as verbose_name %}{{ count }} {{ verbose_name }}{% endblocktrans %} |
| 10 | {% filter capfirst %}{% blocktrans with cl.result_count as count and cl.opts.verbose_name|uncapfirst|escape as verbose_name %}{{ count }} {{ verbose_name }}{% endblocktrans %}{% endfilter %} |
11 | 11 | {% else %} |
12 | | {% blocktrans with cl.result_count as count and cl.opts.verbose_name_plural|uncapfirst|escape as verbose_name_plural %}{{ count }} {{ verbose_name_plural }}{% endblocktrans %} |
| 12 | {% filter capfirst %}{% blocktrans with cl.result_count as count and cl.opts.verbose_name_plural|uncapfirst|escape as verbose_name_plural %}{{ count }} {{ verbose_name_plural }}{% endblocktrans %}{% endfilter %} |
13 | 13 | {% endifequal %} |
14 | 14 | {% if show_all_url %} <a href="{{ show_all_url }}" class="showall">{% trans 'Show all' %}</a>{% endif %} |
15 | 15 | </p> |
=== modified file 'django/contrib/admin/views/main.py'
|
|
|
9 | 9 | from django.db.models.query import handle_legacy_orderlist, QuerySet |
10 | 10 | from django.http import Http404 |
11 | 11 | from django.utils.encoding import force_unicode, smart_str |
12 | | from django.utils.text import uncapfirst |
| 12 | from django.utils.text import capfirst, uncapfirst |
13 | 13 | from django.utils.translation import ugettext |
14 | 14 | import operator |
15 | 15 | |
… |
… |
|
147 | 147 | self.query = request.GET.get(SEARCH_VAR, '') |
148 | 148 | self.query_set = self.get_query_set() |
149 | 149 | self.get_results(request) |
150 | | self.title = (self.is_popup and ugettext('Select %s') % force_unicode(uncapfirst(self.opts.verbose_name)) or ugettext('Select %s to change') % force_unicode(uncapfirst(self.opts.verbose_name))) |
| 150 | self.title = capfirst((self.is_popup and ugettext('Select %s') % force_unicode(uncapfirst(self.opts.verbose_name)) or ugettext('Select %s to change') % force_unicode(uncapfirst(self.opts.verbose_name)))) |
151 | 151 | self.filter_specs, self.has_filters = self.get_filters(request) |
152 | 152 | self.pk_attname = self.lookup_opts.pk.attname |
153 | 153 | |