Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2100 -- Made some remaining parts of the admin changelist tran…

…slatable. Thanks, ramiro

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 3db34ce73e97c4996f6e3e3d1ddef261667ae9a9 1 parent d028f89
Adrian Holovaty authored June 07, 2006
3  django/contrib/admin/templates/admin/filters.html
... ...
@@ -1,6 +1,7 @@
1 1
 {% load admin_list %}
  2
+{% load i18n %}
2 3
 {% if cl.has_filters %}<div id="changelist-filter">
3  
-<h2>Filter</h2>
  4
+<h2>{% trans 'Filter' %}</h2>
4 5
 {% for spec in cl.filter_specs %}
5 6
    {% filter cl spec %}
6 7
 {% endfor %}</div>{% endif %}
3  django/contrib/admin/templates/admin/pagination.html
... ...
@@ -1,4 +1,5 @@
1 1
 {% load admin_list %}
  2
+{% load i18n %}
2 3
 <p class="paginator">
3 4
 {% if pagination_required %}
4 5
 {% for i in page_range %}
@@ -6,5 +7,5 @@
6 7
 {% endfor %}
7 8
 {% endif %}
8 9
 {{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %}
9  
-{% if show_all_url %}&nbsp;&nbsp;<a href="{{ show_all_url }}" class="showall">Show all</a>{% endif %}
  10
+{% if show_all_url %}&nbsp;&nbsp;<a href="{{ show_all_url }}" class="showall">{% trans 'Show all' %}</a>{% endif %}
10 11
 </p>
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|escape }}" id="searchbar" />
8 8
 <input type="submit" value="{% trans 'Go' %}" />
9 9
 {% if show_result_count %}
10  
-    <span class="small quiet">{{ cl.result_count }} result{{ cl.result_count|pluralize }} (<a href="?">{{ cl.full_result_count }} total</a>)</span>
  10
+    <span class="small quiet">{% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?">{% 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|escape }}" value="{{ pair.1|escape }}"/>{% endifnotequal %}

0 notes on commit 3db34ce

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