From 3db34ce73e97c4996f6e3e3d1ddef261667ae9a9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 7 Jun 2006 03:17:58 +0000 Subject: [PATCH] Fixed #2100 -- Made some remaining parts of the admin changelist translatable. Thanks, ramiro git-svn-id: http://code.djangoproject.com/svn/django/trunk@3097 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/templates/admin/filters.html | 3 ++- django/contrib/admin/templates/admin/pagination.html | 3 ++- django/contrib/admin/templates/admin/search_form.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/django/contrib/admin/templates/admin/filters.html b/django/contrib/admin/templates/admin/filters.html index 93c2f65b15..3ca763cce3 100644 --- a/django/contrib/admin/templates/admin/filters.html +++ b/django/contrib/admin/templates/admin/filters.html @@ -1,6 +1,7 @@ {% load admin_list %} +{% load i18n %} {% if cl.has_filters %}
-

Filter

+

{% trans 'Filter' %}

{% for spec in cl.filter_specs %} {% filter cl spec %} {% endfor %}
{% endif %} diff --git a/django/contrib/admin/templates/admin/pagination.html b/django/contrib/admin/templates/admin/pagination.html index 64b1b1a3dd..7694e4c5b0 100644 --- a/django/contrib/admin/templates/admin/pagination.html +++ b/django/contrib/admin/templates/admin/pagination.html @@ -1,4 +1,5 @@ {% load admin_list %} +{% load i18n %}

{% if pagination_required %} {% for i in page_range %} @@ -6,5 +7,5 @@ {% endfor %} {% endif %} {{ cl.result_count }} {% ifequal cl.result_count 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endifequal %} -{% if show_all_url %}  Show all{% endif %} +{% if show_all_url %}  {% trans 'Show all' %}{% endif %}

diff --git a/django/contrib/admin/templates/admin/search_form.html b/django/contrib/admin/templates/admin/search_form.html index 24eced9ef9..d9126c3ec5 100644 --- a/django/contrib/admin/templates/admin/search_form.html +++ b/django/contrib/admin/templates/admin/search_form.html @@ -7,7 +7,7 @@ {% if show_result_count %} - {{ cl.result_count }} result{{ cl.result_count|pluralize }} ({{ cl.full_result_count }} total) + {% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %} ({% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}) {% endif %} {% for pair in cl.params.items %} {% ifnotequal pair.0 search_var %}{% endifnotequal %}