=== modified file 'django/contrib/admin/options.py'
|
|
|
518 | 518 | inline_admin_formsets.append(inline_admin_formset) |
519 | 519 | |
520 | 520 | c = template.RequestContext(request, { |
521 | | 'title': _('Add %s') % opts.verbose_name, |
| 521 | 'title': capfirst(_('Add %s') % opts.verbose_name), |
522 | 522 | 'adminform': adminForm, |
523 | 523 | 'is_popup': request.REQUEST.has_key('_popup'), |
524 | 524 | 'show_delete': False, |
… |
… |
|
592 | 592 | inline_admin_formsets.append(inline_admin_formset) |
593 | 593 | |
594 | 594 | c = template.RequestContext(request, { |
595 | | 'title': _('Change %s') % opts.verbose_name, |
| 595 | 'title': capfirst(_('Change %s') % opts.verbose_name), |
596 | 596 | 'adminform': adminForm, |
597 | 597 | 'object_id': object_id, |
598 | 598 | '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|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|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 as verbose_name %}{{ count }} {{ verbose_name }}{% endblocktrans %} |
| 10 | {% filter capfirst %}{% blocktrans with cl.result_count as count and cl.opts.verbose_name 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 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 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'
|
|
|
10 | 10 | from django.http import Http404 |
11 | 11 | from django.utils.encoding import force_unicode, smart_str |
12 | 12 | from django.utils.translation import ugettext |
| 13 | from django.utils.text import capfirst |
13 | 14 | import operator |
14 | 15 | |
15 | 16 | try: |
… |
… |
|
146 | 147 | self.query = request.GET.get(SEARCH_VAR, '') |
147 | 148 | self.query_set = self.get_query_set() |
148 | 149 | self.get_results(request) |
149 | | self.title = (self.is_popup and ugettext('Select %s') % force_unicode(self.opts.verbose_name) or ugettext('Select %s to change') % force_unicode(self.opts.verbose_name)) |
| 150 | self.title = capfirst((self.is_popup and ugettext('Select %s') % force_unicode(self.opts.verbose_name) or ugettext('Select %s to change') % force_unicode(self.opts.verbose_name))) |
150 | 151 | self.filter_specs, self.has_filters = self.get_filters(request) |
151 | 152 | self.pk_attname = self.lookup_opts.pk.attname |
152 | 153 | |