From 85c00472680e53f2f51cade3d225eac6e2cf60e0 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 22 Aug 2024 12:19:01 +0100 Subject: [PATCH] Audit all uses of localized/unlocalized numbers in templates Address bugs caused by the `USE_THOUSAND_SEPARATOR=True` setting inserting commas where they are invalid, such as image width/height attributes. All numbers output on templates are now passed through one of `|unlocalize` (for numbers that must never have separators), `|intcomma` (for numbers displayed to users which should always include separators) or `|localize` (for when the choice is delegated to the project-wide setting). --- .../select_all_checkbox_input.html | 4 +-- .../wagtailadmin/chooser/_search_results.html | 12 ++++---- .../wagtailadmin/generic/chooser/results.html | 12 ++++---- .../wagtailadmin/generic/index_results.html | 2 +- .../wagtailadmin/generic/inspect.html | 4 +-- .../bulk_actions/confirm_bulk_delete.html | 18 ++++++++---- .../pages/bulk_actions/confirm_bulk_move.html | 19 ++++++++----- .../bulk_actions/confirm_bulk_publish.html | 28 +++++++++++-------- .../bulk_actions/confirm_bulk_unpublish.html | 24 ++++++++++------ .../wagtailadmin/pages/confirm_delete.html | 16 +++++------ .../wagtailadmin/pages/confirm_move.html | 4 +-- .../wagtailadmin/pages/confirm_unpublish.html | 8 +++--- .../pages/listing/_ordering_cell.html | 2 +- .../listing/_page_title_column_header.html | 6 ++-- .../pages/listing/_pagination.html | 8 +++--- .../wagtailadmin/pages/search_results.html | 20 +++++++------ .../listing/_list_page_types_usage.html | 4 +-- .../shared/editing_sessions/module.html | 2 +- .../shared/forms/single_checkbox.html | 3 +- .../wagtailadmin/shared/pagination_nav.html | 2 +- .../shared/side_panel_toggle.html | 2 +- .../side_panels/includes/status/locale.html | 2 +- .../side_panels/includes/status/usage.html | 4 +-- .../wagtailadmin/shared/usage_summary.html | 4 +-- .../workflows/includes/task_usage_cell.html | 6 ++-- .../includes/workflow_tasks_cell.html | 8 +++--- .../includes/workflow_used_by_cell.html | 26 +++++++++-------- .../task_chooser/includes/results.html | 12 ++++---- wagtail/admin/ui/tables/__init__.py | 12 +++++++- .../wagtailforms/list_submissions.html | 4 +-- .../panels/form_responses_panel.html | 4 +-- .../wagtailredirects/import_summary.html | 2 +- .../bulk_actions/confirm_bulk_add_tags.html | 6 +++- .../confirm_bulk_add_to_collection.html | 6 +++- .../bulk_actions/confirm_bulk_delete.html | 16 +++++++---- .../templates/wagtaildocs/documents/edit.html | 4 ++- .../bulk_actions/confirm_bulk_add_tags.html | 6 +++- .../confirm_bulk_add_to_collection.html | 6 +++- .../bulk_actions/confirm_bulk_delete.html | 16 +++++++---- .../wagtailimages/images/_file_field.html | 4 +-- .../templates/wagtailimages/images/edit.html | 8 ++++-- .../wagtailimages/widgets/image_chooser.html | 3 +- wagtail/images/tests/test_templatetags.py | 18 +++++++----- .../bulk_actions/confirm_bulk_delete.html | 8 ++++-- .../templates/tests/form_page_landing.html | 3 +- .../confirm_bulk_assign_role.html | 6 +++- .../bulk_actions/confirm_bulk_delete.html | 6 +++- .../confirm_bulk_set_active_state.html | 6 +++- 48 files changed, 253 insertions(+), 153 deletions(-) diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/select_all_checkbox_input.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/select_all_checkbox_input.html index e837e3bac7..4fc2d7a45d 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/select_all_checkbox_input.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/select_all_checkbox_input.html @@ -1,2 +1,2 @@ -{% load i18n %} - +{% load i18n l10n %} + diff --git a/wagtail/admin/templates/wagtailadmin/chooser/_search_results.html b/wagtail/admin/templates/wagtailadmin/chooser/_search_results.html index 0796aed91d..1f6f164615 100644 --- a/wagtail/admin/templates/wagtailadmin/chooser/_search_results.html +++ b/wagtail/admin/templates/wagtailadmin/chooser/_search_results.html @@ -1,11 +1,13 @@ {% load i18n wagtailadmin_tags %}

- {% blocktrans trimmed count counter=pages.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% with counter_val=pages.paginator.count %} + {% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %} + {% endwith %}

{% if pages %} diff --git a/wagtail/admin/templates/wagtailadmin/generic/chooser/results.html b/wagtail/admin/templates/wagtailadmin/generic/chooser/results.html index 46d5a1ea10..e406208282 100644 --- a/wagtail/admin/templates/wagtailadmin/generic/chooser/results.html +++ b/wagtail/admin/templates/wagtailadmin/generic/chooser/results.html @@ -4,11 +4,13 @@ {% if is_searching %} {% block search_results_count %}

- {% blocktrans trimmed count counter=results.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% with result_count=results.paginator.count %} + {% blocktrans trimmed with counter=result_count|intcomma count counter_val=result_count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %} + {% endwith %}

{% endblock %} {% else %} diff --git a/wagtail/admin/templates/wagtailadmin/generic/index_results.html b/wagtail/admin/templates/wagtailadmin/generic/index_results.html index 12d2aba801..c64cc67eab 100644 --- a/wagtail/admin/templates/wagtailadmin/generic/index_results.html +++ b/wagtail/admin/templates/wagtailadmin/generic/index_results.html @@ -15,7 +15,7 @@ {% elif is_searching or is_filtering %}

- {% blocktrans trimmed count counter=items_count %} + {% blocktrans trimmed with counter=items_count|intcomma count counter_val=items_count %} There is {{ counter }} match {% plural %} There are {{ counter }} matches diff --git a/wagtail/admin/templates/wagtailadmin/generic/inspect.html b/wagtail/admin/templates/wagtailadmin/generic/inspect.html index 41ae158dd1..8da7689be8 100644 --- a/wagtail/admin/templates/wagtailadmin/generic/inspect.html +++ b/wagtail/admin/templates/wagtailadmin/generic/inspect.html @@ -1,5 +1,5 @@ {% extends "wagtailadmin/generic/base.html" %} -{% load i18n wagtailadmin_tags %} +{% load i18n wagtailadmin_tags l10n %} {% block main_content %} {% block fields_output %} @@ -11,7 +11,7 @@ {% if field.component %} {% component field.component %} {% else %} - {{ field.value }} + {{ field.value|localize }} {% endif %} {% endfor %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_delete.html b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_delete.html index 26ae2d148d..7b27b760fa 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_delete.html +++ b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_delete.html @@ -1,7 +1,11 @@ {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} {% load i18n wagtailadmin_tags %} -{% block titletag %}{% blocktrans trimmed count counter=items|length %}Delete 1 page {% plural %}Delete {{ counter }} pages{% endblocktrans %}{% endblock %} +{% block titletag %} + {% with counter_val=items|length %} + {% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}Delete 1 page {% plural %}Delete {{ counter }} pages{% endblocktrans %} + {% endwith %} +{% endblock %} {% block header %} {% include "wagtailadmin/shared/header.html" with title=_("Delete") icon="doc-empty-inverse" %} @@ -16,11 +20,13 @@ {{ page.item.get_admin_display_title }} {% if page.descendant_count %}

- {% blocktrans trimmed count counter=page.descendant_count %} - This will also delete one more subpage. - {% plural %} - This will also delete {{ counter }} more subpages. - {% endblocktrans %} + {% with counter_val=page.descendant_count %} + {% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %} + This will also delete one more subpage. + {% plural %} + This will also delete {{ counter }} more subpages. + {% endblocktrans %} + {% endwith %}

{% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_move.html b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_move.html index aaf5885d61..c6d8ac3882 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_move.html +++ b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_move.html @@ -1,7 +1,10 @@ {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} -{% load i18n %} +{% load i18n wagtailadmin_tags %} -{% block titletag %}{% blocktrans trimmed count counter=items|length %}Move 1 page{% plural %}Move {{ counter }} pages{% endblocktrans %} +{% block titletag %} + {% with counter_val=items|length %} + {% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}Move 1 page{% plural %}Move {{ counter }} pages{% endblocktrans %} + {% endwith %} {% endblock %} {% block header %} @@ -17,11 +20,13 @@ {{ page.item.get_admin_display_title }} {% if not page.item.is_leaf %}

- {% blocktrans trimmed count counter=page.child_pages %} - This page has one child page - {% plural %} - This page has {{ counter }} child pages - {% endblocktrans %} + {% with counter_val=page.child_pages %} + {% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %} + This page has one child page + {% plural %} + This page has {{ counter }} child pages + {% endblocktrans %} + {% endwith %}

{% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_publish.html b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_publish.html index d7bb910331..a97f61cbe2 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_publish.html +++ b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_publish.html @@ -1,7 +1,11 @@ {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} -{% load i18n %} +{% load i18n wagtailadmin_tags %} -{% block titletag %}{% blocktrans trimmed count counter=items|length %}Publish 1 page {% plural %}Publish {{ counter }} pages{% endblocktrans %}{% endblock %} +{% block titletag %} + {% with counter_val=items|length %} + {% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}Publish 1 page {% plural %}Publish {{ counter }} pages{% endblocktrans %} + {% endwith %} +{% endblock %} {% block header %} {% include "wagtailadmin/shared/header.html" with title=_("Publish") icon="doc-empty-inverse" %} @@ -14,15 +18,17 @@ {% for page in items %}
  • {{ page.item.get_admin_display_title }} - {% if page.draft_descendant_count %} -

    - {% blocktrans trimmed count counter=page.draft_descendant_count %} - This page has one unpublished subpage - {% plural %} - This page has {{ counter }} unpublished subpages - {% endblocktrans %} -

    - {% endif %} + {% with draft_descendant_count=page.draft_descendant_count %} + {% if draft_descendant_count %} +

    + {% blocktrans trimmed with counter=draft_descendant_count|intcomma count counter_val=draft_descendant_count %} + This page has one unpublished subpage + {% plural %} + This page has {{ counter }} unpublished subpages + {% endblocktrans %} +

    + {% endif %} + {% endwith %}
  • {% endfor %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_unpublish.html b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_unpublish.html index caab7a27d4..303be6b26e 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_unpublish.html +++ b/wagtail/admin/templates/wagtailadmin/pages/bulk_actions/confirm_bulk_unpublish.html @@ -1,7 +1,11 @@ {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} -{% load i18n %} +{% load i18n wagtailadmin_tags %} -{% block titletag %}{% blocktrans trimmed count counter=items|length %}Unpublish 1 page {% plural %}Unpublish {{ counter }} pages{% endblocktrans %}{% endblock %} +{% block titletag %} + {% with counter_val=items|length %} + {% blocktrans trimmed with counter=counter_val|intcomma count counter_val=counter_val %}Unpublish 1 page {% plural %}Unpublish {{ counter }} pages{% endblocktrans %} + {% endwith %} +{% endblock %} {% block header %} {% include "wagtailadmin/shared/header.html" with title=_("Unpublish") icon="doc-empty-inverse" %} @@ -15,13 +19,15 @@
  • {{ page.item.get_admin_display_title }}

    - {% if page.live_descendant_count %} - {% blocktrans trimmed count counter=page.live_descendant_count %} - This page has one subpage - {% plural %} - This page has {{ counter }} subpages - {% endblocktrans %} - {% endif %} + {% with live_descendant_count=page.live_descendant_count %} + {% if live_descendant_count %} + {% blocktrans trimmed with counter=live_descendant_count|intcomma count counter_val=live_descendant_count %} + This page has one subpage + {% plural %} + This page has {{ counter }} subpages + {% endblocktrans %} + {% endif %} + {% endwith %}

  • {% endfor %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html b/wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html index 8c52eb26eb..434dcefd7c 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html +++ b/wagtail/admin/templates/wagtailadmin/pages/confirm_delete.html @@ -12,7 +12,7 @@ {% trans 'Are you sure you want to delete this page?' %} {% if descendant_count %} - {% blocktrans trimmed count counter=descendant_count %} + {% blocktrans trimmed with counter=descendant_count descendant_count=descendant_count|intcomma count counter=counter %} Deleting this page will also delete {{ descendant_count }} child page. {% plural %} Deleting this page will also delete {{ descendant_count }} more child pages. @@ -21,20 +21,20 @@ {% if translation_count %} {# has translations #} {% if translation_descendant_count %} {# has translations with descendants #} {% if translation_count == 1 %} - {% blocktrans trimmed count counter=translation_descendant_count %} + {% blocktrans trimmed with counter=translation_descendant_count translation_descendant_count=translation_descendant_count|intcomma count counter=counter %} It will also delete 1 translation and its combined {{ translation_descendant_count }} translated child page. {% plural %} It will also delete 1 translation and its combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% else %} - {% blocktrans trimmed count counter=translation_descendant_count %} + {% blocktrans trimmed with counter=translation_descendant_count translation_count=translation_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter %} It will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child page. {% plural %} It will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% endif %} {% else %} - {% blocktrans trimmed count counter=translation_count %} + {% blocktrans trimmed with counter=translation_count translation_count=translation_count|intcomma count counter=counter %} It will also delete {{ translation_count }} translation. {% plural %} It will also delete {{ translation_count }} translations. @@ -44,20 +44,20 @@ {% elif translation_count %} {# no descendants #} {% if translation_descendant_count %} {# has translations with descendants #} {% if translation_count == 1 %} - {% blocktrans trimmed count counter=translation_descendant_count %} + {% blocktrans trimmed with counter=translation_descendant_count translation_descendant_count=translation_descendant_count|intcomma count counter=counter %} Deleting this page will also delete 1 translation and its combined {{ translation_descendant_count }} translated child page. {% plural %} Deleting this page will also delete 1 translation and its combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% else %} - {% blocktrans trimmed count counter=translation_descendant_count %} + {% blocktrans trimmed with counter=translation_descendant_count translation_count=translation_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter%} Deleting this page will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child page. {% plural %} Deleting this page will also delete {{ translation_count }} translations and their combined {{ translation_descendant_count }} translated child pages. {% endblocktrans %} {% endif %} {% else %} - {% blocktrans trimmed count counter=translation_count %} + {% blocktrans trimmed with counter=translation_count descendant_count=descendant_count|intcomma translation_count=translation_count|intcomma count counter=counter %} Deleting this page will also delete {{ translation_count }} translation of this page. {% plural %} This will also delete {{ descendant_count }} more child pages. @@ -71,7 +71,7 @@ {% csrf_token %} {% if confirm_before_delete %}

    - {% blocktrans trimmed with total_pages=descendant_count|add:1 %} + {% blocktrans trimmed with total_pages=descendant_count|add:1|intcomma %} This action will delete total {{ total_pages }} pages. {% endblocktrans %}

    diff --git a/wagtail/admin/templates/wagtailadmin/pages/confirm_move.html b/wagtail/admin/templates/wagtailadmin/pages/confirm_move.html index 6f44622a17..d710fc714f 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/confirm_move.html +++ b/wagtail/admin/templates/wagtailadmin/pages/confirm_move.html @@ -1,5 +1,5 @@ {% extends "wagtailadmin/base.html" %} -{% load i18n %} +{% load i18n wagtailadmin_tags %} {% block titletag %}{% blocktrans trimmed with title=page_to_move.get_admin_display_title %}Move {{ title }}{% endblocktrans %}{% endblock %} {% block content %} {% include "wagtailadmin/shared/header.html" with title=_("Move") subtitle=page_to_move.get_admin_display_title icon="doc-empty-inverse" %} @@ -12,7 +12,7 @@ {% blocktrans trimmed with title=destination.get_admin_display_title %}Are you sure you want to move this page and all of its children into '{{ title }}'?{% endblocktrans %} {% endif %} {% if translations_to_move_count %} - {% blocktrans trimmed count counter=translations_to_move_count %} + {% blocktrans trimmed with counter=translations_to_move_count translations_to_move_count=translations_to_move_count|intcomma count counter=counter %} This will also move one translation of this page and its child pages {% plural %} This will also move {{ translations_to_move_count }} translations of this page and their child pages diff --git a/wagtail/admin/templates/wagtailadmin/pages/confirm_unpublish.html b/wagtail/admin/templates/wagtailadmin/pages/confirm_unpublish.html index e516c7e28b..1bc5b3ca18 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/confirm_unpublish.html +++ b/wagtail/admin/templates/wagtailadmin/pages/confirm_unpublish.html @@ -5,7 +5,7 @@

    {% trans "Are you sure you want to unpublish this page?" %} {% if translation_count %} - {% blocktrans trimmed with translation_count=translation_count count counter=translation_count %} + {% blocktrans trimmed with counter=translation_count translation_count=translation_count|intcomma count counter=counter %} This will also unpublish one translation of the page. {% plural %} This will also unpublish all {{ translation_count }} translations of the page. @@ -21,20 +21,20 @@ {% fragment as text %} {% if translation_descendant_count %} {% if translation_descendant_count == 1 %} - {% blocktrans trimmed count counter=live_descendant_count %} + {% blocktrans trimmed with counter=live_descendant_count live_descendant_count=live_descendant_count|intcomma count counter=counter %} This page has one subpage and its translations have a combined one translated child page. Unpublish these too {% plural %} This page has {{ live_descendant_count }} child pages and its translations have a combined one translated child page. Unpublish these too {% endblocktrans %} {% else %} - {% blocktrans trimmed count counter=live_descendant_count %} + {% blocktrans trimmed with counter=live_descendant_count live_descendant_count=live_descendant_count|intcomma translation_descendant_count=translation_descendant_count|intcomma count counter=counter %} This page has one child page and its translations have a combined {{ translation_descendant_count }} translated child pages. Unpublish these too {% plural %} This page has {{ live_descendant_count }} child pages and its translations have a combined {{ translation_descendant_count }} translated child pages. Unpublish these too {% endblocktrans %} {% endif %} {% else %} - {% blocktrans trimmed count counter=live_descendant_count %} + {% blocktrans trimmed with counter=live_descendant_count live_descendant_count=live_descendant_count|intcomma count counter=counter %} This page has one subpage. Unpublish this too {% plural %} This page has {{ live_descendant_count }} subpages. Unpublish these too diff --git a/wagtail/admin/templates/wagtailadmin/pages/listing/_ordering_cell.html b/wagtail/admin/templates/wagtailadmin/pages/listing/_ordering_cell.html index 65fad562db..807b9c39fc 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/listing/_ordering_cell.html +++ b/wagtail/admin/templates/wagtailadmin/pages/listing/_ordering_cell.html @@ -11,7 +11,7 @@ {% trans 'Drag' %} - {% blocktranslate trimmed with index=row.index|add:1 total=table.row_count %}Item {{ index }} of {{ total }}{% endblocktranslate %} + {% blocktranslate trimmed with index=row.index|add:1|intcomma total=table.row_count|intcomma %}Item {{ index }} of {{ total }}{% endblocktranslate %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html b/wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html index 802989e850..1c3e0a0b08 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html +++ b/wagtail/admin/templates/wagtailadmin/pages/listing/_page_title_column_header.html @@ -4,7 +4,7 @@ {% block after_label %} {% if result_scope == "whole_tree" %} {% if items_count %} - {% blocktranslate trimmed %} + {% blocktranslate trimmed with start_index=start_index|intcomma end_index=end_index|intcomma items_count=items_count|intcomma %} {{ start_index }}-{{ end_index }} of {{ items_count }} across entire site. {% endblocktranslate %} {% else %} @@ -17,7 +17,7 @@ {% elif result_scope == "parent" %} {% if items_count %} - {% blocktranslate trimmed with title=parent_page.get_admin_display_title %} + {% blocktranslate trimmed with title=parent_page.get_admin_display_title start_index=start_index|intcomma end_index=end_index|intcomma items_count=items_count|intcomma %} {{ start_index }}-{{ end_index }} of {{ items_count }} in '{{ title }}'. {% endblocktranslate %} {% else %} @@ -29,7 +29,7 @@ {% translate "Search the whole site" %} {% else %} - {% blocktranslate trimmed %} + {% blocktranslate trimmed with start_index=start_index|intcomma end_index=end_index|intcomma items_count=items_count|intcomma %} {{ start_index }}-{{ end_index }} of {{ items_count }} {% endblocktranslate %} {% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/pages/listing/_pagination.html b/wagtail/admin/templates/wagtailadmin/pages/listing/_pagination.html index 31eb260c52..5b49ea5772 100644 --- a/wagtail/admin/templates/wagtailadmin/pages/listing/_pagination.html +++ b/wagtail/admin/templates/wagtailadmin/pages/listing/_pagination.html @@ -1,17 +1,17 @@ -{% load i18n wagtailadmin_tags %} +{% load i18n wagtailadmin_tags l10n %} {% comment %} Pagination for page listings. Used by the `{% paginate %}` template tag. {% endcomment %}