Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5425 - Incorrect plurals in admin pagination template.

Thanks to Petr Marhoun for the report, and mk for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13998 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2faa490aeb142345daf7d75a40b8c73e1099f6d8 1 parent bf0947a
Luke Plant authored October 07, 2010
2  django/contrib/admin/templates/admin/pagination.html
@@ -6,7 +6,7 @@
6 6
     {% paginator_number cl i %}
7 7
 {% endfor %}
8 8
 {% endif %}
9  
-{{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
  9
+{% blocktrans with cl.opts.verbose_name as verbose_name and cl.opts.verbose_name_plural as verbose_name_plural count cl.result_count as count %}{{ count }} {{ verbose_name }}{% plural %}{{ count }} {{ verbose_name_plural }}{% endblocktrans %}
10 10
 {% if show_all_url %}&nbsp;&nbsp;<a href="{{ show_all_url }}" class="showall">{% trans 'Show all' %}</a>{% endif %}
11 11
 {% if cl.formset and cl.result_count %}<input type="submit" name="_save" class="default" value="{% trans 'Save' %}"/>{% endif %}
12 12
 </p>

0 notes on commit 2faa490

Please sign in to comment.
Something went wrong with that request. Please try again.