From 35d36d946272bed06a3d7c7cd4e5b71b613e7a4f Mon Sep 17 00:00:00 2001 From: Mike Hansen Date: Mon, 23 Sep 2019 08:31:21 -0700 Subject: Refs #30585 -- Updated project templates and tests to use (block)translate tags. --- tests/admin_views/templates/admin/admin_views/article/actions.html | 2 +- .../admin/admin_views/article/change_form_object_tools.html | 2 +- .../admin/admin_views/article/change_list_object_tools.html | 2 +- .../templates/admin/admin_views/article/change_list_results.html | 6 +++--- .../templates/admin/admin_views/article/date_hierarchy.html | 2 +- .../admin_views/templates/admin/admin_views/article/pagination.html | 4 ++-- .../templates/admin/admin_views/article/search_form.html | 4 ++-- .../templates/admin/admin_views/article/submit_line.html | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/admin_views') diff --git a/tests/admin_views/templates/admin/admin_views/article/actions.html b/tests/admin_views/templates/admin/admin_views/article/actions.html index 9aa238fd2a..d66ad304a2 100644 --- a/tests/admin_views/templates/admin/admin_views/article/actions.html +++ b/tests/admin_views/templates/admin/admin_views/article/actions.html @@ -2,5 +2,5 @@ {% load i18n %} {% block actions-submit %} - + {% endblock %} diff --git a/tests/admin_views/templates/admin/admin_views/article/change_form_object_tools.html b/tests/admin_views/templates/admin/admin_views/article/change_form_object_tools.html index 609974bb95..d141664daf 100644 --- a/tests/admin_views/templates/admin/admin_views/article/change_form_object_tools.html +++ b/tests/admin_views/templates/admin/admin_views/article/change_form_object_tools.html @@ -2,6 +2,6 @@ {% load i18n admin_urls %} {% block object-tools-items %} -
  • {% trans "Export" %}
  • +
  • {% translate "Export" %}
  • {{ block.super }} {% endblock %} diff --git a/tests/admin_views/templates/admin/admin_views/article/change_list_object_tools.html b/tests/admin_views/templates/admin/admin_views/article/change_list_object_tools.html index 1a9be91952..b366807da4 100644 --- a/tests/admin_views/templates/admin/admin_views/article/change_list_object_tools.html +++ b/tests/admin_views/templates/admin/admin_views/article/change_list_object_tools.html @@ -2,6 +2,6 @@ {% load i18n admin_urls %} {% block object-tools-items %} -
  • {% trans "Export" %}
  • +
  • {% translate "Export" %}
  • {{ block.super }} {% endblock %} diff --git a/tests/admin_views/templates/admin/admin_views/article/change_list_results.html b/tests/admin_views/templates/admin/admin_views/article/change_list_results.html index ceb581f8ef..ca36f3abcf 100644 --- a/tests/admin_views/templates/admin/admin_views/article/change_list_results.html +++ b/tests/admin_views/templates/admin/admin_views/article/change_list_results.html @@ -14,9 +14,9 @@ {% if header.sortable %} {% if header.sort_priority > 0 %}
    - - {% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %} - + + {% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %} +
    {% endif %} {% endif %} diff --git a/tests/admin_views/templates/admin/admin_views/article/date_hierarchy.html b/tests/admin_views/templates/admin/admin_views/article/date_hierarchy.html index de1cb747b5..8f76bea8f9 100644 --- a/tests/admin_views/templates/admin/admin_views/article/date_hierarchy.html +++ b/tests/admin_views/templates/admin/admin_views/article/date_hierarchy.html @@ -5,5 +5,5 @@ - + {% endblock %} diff --git a/tests/admin_views/templates/admin/admin_views/article/pagination.html b/tests/admin_views/templates/admin/admin_views/article/pagination.html index e072cacd3c..e712b7d2d7 100644 --- a/tests/admin_views/templates/admin/admin_views/article/pagination.html +++ b/tests/admin_views/templates/admin/admin_views/article/pagination.html @@ -7,6 +7,6 @@ {% endfor %} {% endif %} {{ cl.result_count }} {% if cl.result_count == 1 %}{{ cl.opts.verbose_name }}{% else %}{{ cl.opts.verbose_name_plural }}{% endif %} -{% if show_all_url %}  {% trans 'Show all' %}{% endif %} -{% if cl.formset and cl.result_count %}{% endif %} +{% if show_all_url %}  {% translate 'Show all' %}{% endif %} +{% if cl.formset and cl.result_count %}{% endif %}

    diff --git a/tests/admin_views/templates/admin/admin_views/article/search_form.html b/tests/admin_views/templates/admin/admin_views/article/search_form.html index 5b5e6a58f6..eef986cb30 100644 --- a/tests/admin_views/templates/admin/admin_views/article/search_form.html +++ b/tests/admin_views/templates/admin/admin_views/article/search_form.html @@ -4,9 +4,9 @@
    - + {% if show_result_count %} - {% blocktrans count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %} ({% if cl.show_full_result_count %}{% blocktrans with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktrans %}{% else %}{% trans "Show all" %}{% endif %}) + {% blocktranslate count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktranslate %} ({% if cl.show_full_result_count %}{% blocktranslate with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktranslate %}{% else %}{% translate "Show all" %}{% endif %}) {% endif %} {% for pair in cl.params.items %} {% if pair.0 != search_var %}{% endif %} diff --git a/tests/admin_views/templates/admin/admin_views/article/submit_line.html b/tests/admin_views/templates/admin/admin_views/article/submit_line.html index 4a2ca08890..97554b5571 100644 --- a/tests/admin_views/templates/admin/admin_views/article/submit_line.html +++ b/tests/admin_views/templates/admin/admin_views/article/submit_line.html @@ -2,6 +2,6 @@ {% load i18n admin_urls %} {% block submit-row %} -{% if show_publish %}{% endif %} +{% if show_publish %}{% endif %} {{ block.super }} {% endblock %} -- cgit v1.3