Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14735 -- Corrected plural formulation in admin search form tem…

…plate. Thanks, Claude.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 16c21bc45a9c3b2ba0109a99c3658d1f992a3099 1 parent cc64fb5
Jannis Leidel authored December 02, 2010
2  django/contrib/admin/templates/admin/search_form.html
@@ -7,7 +7,7 @@
7 7
 <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />
8 8
 <input type="submit" value="{% trans 'Search' %}" />
9 9
 {% if show_result_count %}
10  
-    <span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span>
  10
+    <span class="small quiet">{% blocktrans count cl.result_count as counter %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span>
11 11
 {% endif %}
12 12
 {% for pair in cl.params.items %}
13 13
     {% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endifnotequal %}

0 notes on commit 16c21bc

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