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 bbfa8ffbce..314e89acee 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 @@ -1,15 +1,30 @@ {% extends "wagtailadmin/tables/column_header.html" %} -{% load wagtailadmin_tags %} +{% load wagtailadmin_tags i18n %} {% block after_label %} {% if page_obj %} - {{ page_obj.start_index }}-{{ page_obj.end_index }} of {{ page_obj.paginator.count }} - {% if is_searching %} - {% if is_searching_whole_tree %} - across entire site. Search within '{{ parent_page.get_admin_display_title }}' + {% with start_index=page_obj.start_index end_index=page_obj.end_index result_count=page_obj.paginator.count %} + {% if is_searching %} + {% if is_searching_whole_tree %} + {% blocktranslate trimmed %} + {{ start_index }}-{{ end_index }} of {{ result_count }} across entire site. + {% endblocktranslate %} + + {% blocktranslate trimmed with title=parent_page.get_admin_display_title %}Search within '{{ title }}'{% endblocktranslate %} + + {% else %} + {% blocktrans trimmed with title=parent_page.get_admin_display_title %} + {{ start_index }}-{{ end_index }} of {{ result_count }} within '{{ title }}'. + {% endblocktrans %} + + {% translate "Search the whole site" %} + + {% endif %} {% else %} - within '{{ parent_page.get_admin_display_title }}'. Search the whole site + {% blocktrans trimmed %} + {{ start_index }}-{{ end_index }} of {{ result_count }} + {% endblocktrans %} {% endif %} - {% endif %} + {% endwith %} {% endif %} {% endblock %}