Add trimmed to blocktrans tags. Fix #8217 (#8226)

pull/8258/head
Harris Bard Lapiroff 2022-04-01 22:16:51 +00:00 zatwierdzone przez GitHub
rodzic 5eeb8cca40
commit 1adc82c044
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
148 zmienionych plików z 265 dodań i 264 usunięć

Wyświetl plik

@ -37,6 +37,7 @@ Changelog
* Add support for embedding Instagram reels (Luis Nell) * Add support for embedding Instagram reels (Luis Nell)
* Use Djangos JavaScript catalog feature to manage translatable strings in JavaScript (Karl Hobley) * Use Djangos JavaScript catalog feature to manage translatable strings in JavaScript (Karl Hobley)
* Add a `page_description` to the Page model, to provide help text for a given page type (Kalob Taulien, Thibaud Colas, Matt Westcott) * Add a `page_description` to the Page model, to provide help text for a given page type (Kalob Taulien, Thibaud Colas, Matt Westcott)
* Add `trimmed` attribute to all blocktrans tags, so spacing is more reliable in translated strings (Harris Lapiroff)
* Fix: When using `simple_translations` ensure that the user is redirected to the page edit view when submitting for a single locale (Mitchel Cabuloy) * Fix: When using `simple_translations` ensure that the user is redirected to the page edit view when submitting for a single locale (Mitchel Cabuloy)
* Fix: When previewing unsaved changes to `Form` pages, ensure that all added fields are correctly shown in the preview (Joshua Munn) * Fix: When previewing unsaved changes to `Form` pages, ensure that all added fields are correctly shown in the preview (Joshua Munn)
* Fix: When Documents (e.g. PDFs) have been configured to be served inline via `WAGTAILDOCS_CONTENT_TYPES` & `WAGTAILDOCS_INLINE_CONTENT_TYPES` ensure that the filename is correctly set in the `Content-Disposition` header so that saving the files will use the correct filename (John-Scott Atlakson) * Fix: When Documents (e.g. PDFs) have been configured to be served inline via `WAGTAILDOCS_CONTENT_TYPES` & `WAGTAILDOCS_INLINE_CONTENT_TYPES` ensure that the filename is correctly set in the `Content-Disposition` header so that saving the files will use the correct filename (John-Scott Atlakson)

Wyświetl plik

@ -48,7 +48,7 @@ An example for a confirmation template is as follows:
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans count counter=items|length %}Delete 1 item{% plural %}Delete {{ counter }} items{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed count counter=items|length %}Delete 1 item{% plural %}Delete {{ counter }} items{% endblocktrans %}{% endblock %}
{% block header %} {% block header %}
{% trans "Delete" as del_str %} {% trans "Delete" as del_str %}
@ -70,7 +70,7 @@ An example for a confirmation template is as follows:
{% block items_with_no_access %} {% block items_with_no_access %}
{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this item{% plural %}You don't have permission to delete these items{% endblocktrans %} {% blocktrans trimmed asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this item{% plural %}You don't have permission to delete these items{% endblocktrans %}
{% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %}
{% endblock items_with_no_access %} {% endblock items_with_no_access %}

Wyświetl plik

@ -67,7 +67,7 @@ class LandingPage(Page):
* Split up linting / formatting tasks in Makefile into client and server components (Hitansh Shah) * Split up linting / formatting tasks in Makefile into client and server components (Hitansh Shah)
* Add support for embedding Instagram reels (Luis Nell) * Add support for embedding Instagram reels (Luis Nell)
* Use Djangos JavaScript catalog feature to manage translatable strings in JavaScript (Karl Hobley) * Use Djangos JavaScript catalog feature to manage translatable strings in JavaScript (Karl Hobley)
* Add `trimmed` attribute to all blocktrans tags, so spacing is more reliable in translated strings (Harris Lapiroff)
### Bug fixes ### Bug fixes

Wyświetl plik

@ -1,7 +1,7 @@
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
<h2 role="alert"> <h2 role="alert">
{% blocktrans count counter=pages.paginator.count %} {% blocktrans trimmed count counter=pages.paginator.count %}
There is {{ counter }} match There is {{ counter }} match
{% plural %} {% plural %}
There are {{ counter }} matches There are {{ counter }} matches

Wyświetl plik

@ -13,7 +13,7 @@
{% if page_types_restricted %} {% if page_types_restricted %}
<p class="help-block help-warning"> <p class="help-block help-warning">
{% icon name='warning' %} {% icon name='warning' %}
{% blocktrans with type=page_type_names|join:", " count counter=page_type_names|length %} {% blocktrans trimmed with type=page_type_names|join:", " count counter=page_type_names|length %}
Only pages of type "{{ type }}" may be chosen for this field. Search results will exclude pages of other types. Only pages of type "{{ type }}" may be chosen for this field. Search results will exclude pages of other types.
{% plural %} {% plural %}
Only the following page types may be chosen for this field: {{ type }}. Search results will exclude pages of other types. Only the following page types may be chosen for this field: {{ type }}. Search results will exclude pages of other types.

Wyświetl plik

@ -4,14 +4,14 @@
<div class="nice-padding"> <div class="nice-padding">
<p> <p>
{% blocktrans %} {% blocktrans trimmed %}
The URL you entered, <a target="_blank" rel="noreferrer" href="{{ submitted_url }}">{{ submitted_url }}</a>, The URL you entered, <a target="_blank" rel="noreferrer" href="{{ submitted_url }}">{{ submitted_url }}</a>,
looks like it matches the internal page {{ page }}, which has the URL looks like it matches the internal page {{ page }}, which has the URL
<a target="_blank" rel="noreferrer" href="{{ internal_url }}">{{ internal_url }}</a>. <a target="_blank" rel="noreferrer" href="{{ internal_url }}">{{ internal_url }}</a>.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
<p> <p>
{% blocktrans %} {% blocktrans trimmed %}
Converting this to an internal link to {{ page }} would make the link more robust. Converting this to an internal link to {{ page }} would make the link more robust.
Would you like to do this? Would you like to do this?
{% endblocktrans %} {% endblocktrans %}

Wyświetl plik

@ -29,7 +29,7 @@
</table> </table>
{% else %} {% else %}
{% url 'wagtailadmin_collections:add' as add_collection_url %} {% url 'wagtailadmin_collections:add' as add_collection_url %}
<p>{% blocktrans %}No collections have been created. Why not <a href="{{ add_collection_url }}">add one</a>?{% endblocktrans %}</p> <p>{% blocktrans trimmed %}No collections have been created. Why not <a href="{{ add_collection_url }}">add one</a>?{% endblocktrans %}</p>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

Wyświetl plik

@ -18,7 +18,7 @@
<div class="avatar"><img src="{% avatar_url user %}" alt="" /></div> <div class="avatar"><img src="{% avatar_url user %}" alt="" /></div>
</div> </div>
<div class="col9"> <div class="col9">
<h1>{% block branding_welcome %}{% blocktrans %}Welcome to the {{ site_name }} Wagtail CMS{% endblocktrans %}{% endblock %}</h1> <h1>{% block branding_welcome %}{% blocktrans trimmed %}Welcome to the {{ site_name }} Wagtail CMS{% endblocktrans %}{% endblock %}</h1>
<div class="user-name">{{ user|user_display_name }}</div> <div class="user-name">{{ user|user_display_name }}</div>
</div> </div>
</div> </div>

Wyświetl plik

@ -49,7 +49,7 @@
</ul> </ul>
</td> </td>
<td>{# Deliberately empty #}</td> <td>{# Deliberately empty #}</td>
<td valign="top"><div class="human-readable-date" title="{{ page.locked_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=page.locked_at|timesince_simple %}{{ time_period }}{% endblocktrans %}</div></td> <td valign="top"><div class="human-readable-date" title="{{ page.locked_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=page.locked_at|timesince_simple %}{{ time_period }}{% endblocktrans %}</div></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

Wyświetl plik

@ -66,7 +66,7 @@
{{ revision.page.content_type.model_class.get_verbose_name }} {{ revision.page.content_type.model_class.get_verbose_name }}
</td> </td>
<td valign="top"> <td valign="top">
<div class="human-readable-date" title="{{ revision.created_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=revision.created_at|timesince_simple %}{{ time_period }}{% endblocktrans %} </div> <div class="human-readable-date" title="{{ revision.created_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=revision.created_at|timesince_simple %}{{ time_period }}{% endblocktrans %} </div>
{% if revision.user %} {% if revision.user %}
by {{ revision.user|user_display_name }} by {{ revision.user|user_display_name }}
{% endif %} {% endif %}

Wyświetl plik

@ -46,7 +46,7 @@
<td valign="top"> <td valign="top">
{% include "wagtailadmin/shared/page_status_tag.html" with page=page %} {% include "wagtailadmin/shared/page_status_tag.html" with page=page %}
</td> </td>
<td valign="top"><div class="human-readable-date" title="{{ revision.created_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=revision.created_at|timesince_simple %}{{ time_period }}{% endblocktrans %}</div></td> <td valign="top"><div class="human-readable-date" title="{{ revision.created_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=revision.created_at|timesince_simple %}{{ time_period }}{% endblocktrans %}</div></td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>

Wyświetl plik

@ -3,7 +3,7 @@
<li> <li>
{% icon name="doc-empty-inverse" %} {% icon name="doc-empty-inverse" %}
<a href="{% url 'wagtailadmin_explore' root_page.pk %}"> <a href="{% url 'wagtailadmin_explore' root_page.pk %}">
{% blocktrans count counter=total_pages with total_pages|intcomma as total %} {% blocktrans trimmed count counter=total_pages with total_pages|intcomma as total %}
<span>{{ total }}</span> Page <span class="visuallyhidden">created in {{ site_name }}</span> <span>{{ total }}</span> Page <span class="visuallyhidden">created in {{ site_name }}</span>
{% plural %} {% plural %}
<span>{{ total }}</span> Pages <span class="visuallyhidden">created in {{ site_name }}</span> <span>{{ total }}</span> Pages <span class="visuallyhidden">created in {{ site_name }}</span>

Wyświetl plik

@ -46,7 +46,7 @@
{{ workflow_state.current_task_state.task.name }} {{ workflow_state.current_task_state.task.name }}
</td> </td>
<td valign="top"> <td valign="top">
<div class="human-readable-date" title="{{ workflow_state.current_task_state.started_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=workflow_state.current_task_state.started_at|timesince_simple %}{{ time_period }}{% endblocktrans %} </div> <div class="human-readable-date" title="{{ workflow_state.current_task_state.started_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=workflow_state.current_task_state.started_at|timesince_simple %}{{ time_period }}{% endblocktrans %} </div>
</td> </td>
</tr> </tr>
{% endwith %} {% endwith %}

Wyświetl plik

@ -74,7 +74,7 @@
{% if revision.user %}{{ revision.user|user_display_name }}{% endif %} {% if revision.user %}{{ revision.user|user_display_name }}{% endif %}
</td> </td>
<td valign="top"> <td valign="top">
<div class="human-readable-date" title="{{ task_state.started_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=task_state.started_at|timesince_simple %}{{ time_period }}{% endblocktrans %}</div> <div class="human-readable-date" title="{{ task_state.started_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=task_state.started_at|timesince_simple %}{{ time_period }}{% endblocktrans %}</div>
</td> </td>
</tr> </tr>
{% endwith %} {% endwith %}

Wyświetl plik

@ -15,7 +15,7 @@
<div class="messages"> <div class="messages">
<ul> <ul>
{% if form.errors %} {% if form.errors %}
<li class="error">{% blocktrans %}Your {{ username_field }} and password didn't match. Please try again.{% endblocktrans %}</li> <li class="error">{% blocktrans trimmed %}Your {{ username_field }} and password didn't match. Please try again.{% endblocktrans %}</li>
{% endif %} {% endif %}
{% for message in messages %} {% for message in messages %}
<li class="{{ message.tags }}">{{ message }}</li> <li class="{{ message.tags }}">{{ message }}</li>

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<p>{% blocktrans with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been approved.{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been approved.{% endblocktrans %}</p>
<p>{% trans "You can view the page here:" %} <a href="{{ revision.page.full_url }}">{{ revision.page.full_url }}</a></p> <p>{% trans "You can view the page here:" %} <a href="{{ revision.page.full_url }}">{{ revision.page.full_url }}</a></p>
{% endblock %} {% endblock %}

Wyświetl plik

@ -2,7 +2,7 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% blocktrans with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been approved.{% endblocktrans %} {% blocktrans trimmed with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been approved.{% endblocktrans %}
{% trans "You can view the page here:" %} {{ revision.page.full_url }} {% trans "You can view the page here:" %} {{ revision.page.full_url }}
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been approved{% endblocktrans %} {% blocktrans trimmed with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been approved{% endblocktrans %}

Wyświetl plik

@ -108,7 +108,7 @@
{% endblock %} {% endblock %}
{% block greeting %} {% block greeting %}
<p>{% blocktrans with username=user.get_short_name|default:user.get_username %}Hello {{ username }},{% endblocktrans %}</p> <p>{% blocktrans trimmed with username=user.get_short_name|default:user.get_username %}Hello {{ username }},{% endblocktrans %}</p>
{% endblock %} {% endblock %}
{% block content %} {% block content %}

Wyświetl plik

@ -1,7 +1,7 @@
{% load i18n %} {% load i18n %}
{% block greeting %} {% block greeting %}
{% blocktrans with username=user.get_short_name|default:user.get_username %}Hello {{ username }},{% endblocktrans %} {% blocktrans trimmed with username=user.get_short_name|default:user.get_username %}Hello {{ username }},{% endblocktrans %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% endblock %} {% endblock %}

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<p>{% blocktrans with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been rejected.{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been rejected.{% endblocktrans %}</p>
<p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %}</a></p> <p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %}</a></p>
{% endblock %} {% endblock %}

Wyświetl plik

@ -2,7 +2,7 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% blocktrans with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been rejected.{% endblocktrans %} {% blocktrans trimmed with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been rejected.{% endblocktrans %}
{% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %} {% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %}
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been rejected{% endblocktrans %} {% blocktrans trimmed with title=revision.page.get_admin_display_title|safe %}The page "{{ title }}" has been rejected{% endblocktrans %}

Wyświetl plik

@ -3,7 +3,7 @@
{% load wagtailadmin_tags i18n %} {% load wagtailadmin_tags i18n %}
{% block content %} {% block content %}
<p>{% blocktrans with page=revision.page|safe editor=revision.user|user_display_name %}The page "{{ page }}" has been submitted for moderation by {{ editor }}.{% endblocktrans %}</p> <p>{% blocktrans trimmed with page=revision.page|safe editor=revision.user|user_display_name %}The page "{{ page }}" has been submitted for moderation by {{ editor }}.{% endblocktrans %}</p>
<p> <p>
{% if revision.page.is_previewable %} {% if revision.page.is_previewable %}

Wyświetl plik

@ -2,7 +2,7 @@
{% load wagtailadmin_tags i18n %} {% load wagtailadmin_tags i18n %}
{% block content %} {% block content %}
{% blocktrans with page=revision.page|safe editor=revision.user|user_display_name %}The page "{{ page }}" has been submitted for moderation by {{ editor }}.{% endblocktrans %} {% blocktrans trimmed with page=revision.page|safe editor=revision.user|user_display_name %}The page "{{ page }}" has been submitted for moderation by {{ editor }}.{% endblocktrans %}
{% if revision.page.is_previewable %}{% trans "You can preview the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:preview_for_moderation' revision.id %}{% endif %} {% if revision.page.is_previewable %}{% trans "You can preview the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:preview_for_moderation' revision.id %}{% endif %}
{% trans "You can edit the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %} {% trans "You can edit the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' revision.page.id %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with page=revision.page|safe %}The page "{{ page }}" has been submitted for moderation{% endblocktrans %} {% blocktrans trimmed with page=revision.page|safe %}The page "{{ page }}" has been submitted for moderation{% endblocktrans %}

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<p>{% blocktrans with title=page.get_admin_display_title task=task.name %}The page "{{ title }}" has been approved in moderation stage "{{ task }}".{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=page.get_admin_display_title task=task.name %}The page "{{ title }}" has been approved in moderation stage "{{ task }}".{% endblocktrans %}</p>
<p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p> <p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p>
{% endblock %} {% endblock %}

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% blocktrans with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been approved in moderation stage "{{ task }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been approved in moderation stage "{{ task }}".{% endblocktrans %}
{% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %} {% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been approved in "{{ task }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been approved in "{{ task }}".{% endblocktrans %}

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<p>{% blocktrans with title=page.get_admin_display_title task=task.name %}The page "{{ title }}" has been rejected in moderation stage "{{ task }}".{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=page.get_admin_display_title task=task.name %}The page "{{ title }}" has been rejected in moderation stage "{{ task }}".{% endblocktrans %}</p>
<p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p> <p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p>
{% endblock %} {% endblock %}

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% blocktrans with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been rejected in moderation stage "{{ task }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been rejected in moderation stage "{{ task }}".{% endblocktrans %}
{% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %} {% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been rejected during "{{ task }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been rejected during "{{ task }}".{% endblocktrans %}

Wyświetl plik

@ -3,7 +3,7 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<p>{% blocktrans with task=task.name title=page.get_admin_display_title %}The page "{{ title }}" has been submitted for approval in moderation stage "{{ task }}".{% endblocktrans %}</p> <p>{% blocktrans trimmed with task=task.name title=page.get_admin_display_title %}The page "{{ title }}" has been submitted for approval in moderation stage "{{ task }}".{% endblocktrans %}</p>
<p> <p>
{% trans "You can preview the page here:" %} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}</a><br/> {% trans "You can preview the page here:" %} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}</a><br/>

Wyświetl plik

@ -3,7 +3,7 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% blocktrans with task=task.name|safe title=page.get_admin_display_title|safe %}The page "{{ title }}" has been submitted for approval to moderation stage "{{ task }}".{% endblocktrans %} {% blocktrans trimmed with task=task.name|safe title=page.get_admin_display_title|safe %}The page "{{ title }}" has been submitted for approval to moderation stage "{{ task }}".{% endblocktrans %}
{% trans "You can preview the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %} {% trans "You can preview the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:workflow_preview' page.id task.id %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been submitted for approval in moderation stage "{{ task }}" {% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe task=task.name|safe %}The page "{{ title }}" has been submitted for approval in moderation stage "{{ task }}" {% endblocktrans %}

Wyświetl plik

@ -3,7 +3,7 @@
{% block content %} {% block content %}
<p> <p>
{% blocktrans with title=page.get_admin_display_title editor=editor|user_display_name %}{{ editor }} has updated comments on "{{ title }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title editor=editor|user_display_name %}{{ editor }} has updated comments on "{{ title }}".{% endblocktrans %}
</p> </p>
{% if new_comments %} {% if new_comments %}

Wyświetl plik

@ -1,7 +1,7 @@
{% extends 'wagtailadmin/notifications/base.txt' %} {% extends 'wagtailadmin/notifications/base.txt' %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block content %}{% blocktrans with title=page.get_admin_display_title|safe editor=editor|user_display_name|safe %}{{ editor }} has updated comments on "{{ title }}".{% endblocktrans %} {% block content %}{% blocktrans trimmed with title=page.get_admin_display_title|safe editor=editor|user_display_name|safe %}{{ editor }} has updated comments on "{{ title }}".{% endblocktrans %}
{% spaceless %} {% spaceless %}
{% endspaceless %}{% if new_comments %} {% endspaceless %}{% if new_comments %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% blocktrans with title=page.get_admin_display_title|safe editor=editor|user_display_name|safe %}{{ editor }} has updated comments on "{{ title }}"{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe editor=editor|user_display_name|safe %}{{ editor }} has updated comments on "{{ title }}"{% endblocktrans %}

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
<p>{% blocktrans with title=page.get_admin_display_title workflow=workflow.name %}The page "{{ title }}" has been approved in workflow "{{ workflow }}".{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=page.get_admin_display_title workflow=workflow.name %}The page "{{ title }}" has been approved in workflow "{{ workflow }}".{% endblocktrans %}</p>
<p>{% trans "You can view the page here:" %} <a href="{{ page.full_url }}">{{ page.full_url }}</a></p> <p>{% trans "You can view the page here:" %} <a href="{{ page.full_url }}">{{ page.full_url }}</a></p>
{% endblock %} {% endblock %}

Wyświetl plik

@ -2,6 +2,6 @@
{% load i18n %} {% load i18n %}
{% block content %} {% block content %}
{% blocktrans with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been approved in workflow "{{ workflow }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been approved in workflow "{{ workflow }}".{% endblocktrans %}
{% trans "You can view the page here:" %} {{ page.full_url }} {% trans "You can view the page here:" %} {{ page.full_url }}
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been approved in "{{ workflow }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been approved in "{{ workflow }}".{% endblocktrans %}

Wyświetl plik

@ -3,12 +3,12 @@
{% block content %} {% block content %}
{% if task_state.finished_by %} {% if task_state.finished_by %}
<p>{% blocktrans with title=page.get_admin_display_title workflow=workflow.name task=task.name rejector=task_state.finished_by|user_display_name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=page.get_admin_display_title workflow=workflow.name task=task.name rejector=task_state.finished_by|user_display_name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.{% endblocktrans %}</p>
{% else %} {% else %}
<p>{% blocktrans with title=page.get_admin_display_title workflow=workflow.name task=task.name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=page.get_admin_display_title workflow=workflow.name task=task.name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".{% endblocktrans %}</p>
{% endif %} {% endif %}
{% if comment %} {% if comment %}
<p>{% blocktrans %}The following comment was left: "{{ comment }}"{% endblocktrans %}</p> <p>{% blocktrans trimmed %}The following comment was left: "{{ comment }}"{% endblocktrans %}</p>
{% endif %} {% endif %}
<p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p> <p>{% trans "You can edit the page here:"%} <a href="{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}">{{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}</a></p>
{% endblock %} {% endblock %}

Wyświetl plik

@ -3,12 +3,12 @@
{% block content %} {% block content %}
{% if task_state.finished_by %} {% if task_state.finished_by %}
{% blocktrans with title=page.get_admin_display_title|safe workflow=workflow.name|safe task=task.name|safe rejector=task_state.finished_by|user_display_name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe task=task.name|safe rejector=task_state.finished_by|user_display_name %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}" by {{ rejector }}.{% endblocktrans %}
{% else %} {% else %}
{% blocktrans with title=page.get_admin_display_title|safe workflow=workflow.name|safe task=task.name|safe %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe task=task.name|safe %}The page "{{ title }}" has been rejected during "{{ task }}" in workflow "{{ workflow }}".{% endblocktrans %}
{% endif %} {% endif %}
{% if comment %} {% if comment %}
{% blocktrans with comment=comment|safe %}The following comment was left: "{{ comment }}"{% endblocktrans %}</p> {% blocktrans trimmed with comment=comment|safe %}The following comment was left: "{{ comment }}"{% endblocktrans %}</p>
{% endif %} {% endif %}
{% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %} {% trans "You can edit the page here:"%} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been rejected during "{{ workflow }}".{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been rejected during "{{ workflow }}".{% endblocktrans %}

Wyświetl plik

@ -4,9 +4,9 @@
{% block content %} {% block content %}
{% if requested_by %} {% if requested_by %}
<p>{% blocktrans with workflow=workflow.name title=page.get_admin_display_title requester=requested_by|user_display_name %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.{% endblocktrans %}</p> <p>{% blocktrans trimmed with workflow=workflow.name title=page.get_admin_display_title requester=requested_by|user_display_name %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.{% endblocktrans %}</p>
{% else %} {% else %}
<p>{% blocktrans with workflow=workflow.name title=page.get_admin_display_title %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".{% endblocktrans %}</p> <p>{% blocktrans trimmed with workflow=workflow.name title=page.get_admin_display_title %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".{% endblocktrans %}</p>
{% endif %} {% endif %}
<p> <p>

Wyświetl plik

@ -3,8 +3,8 @@
{% load wagtailadmin_tags i18n %} {% load wagtailadmin_tags i18n %}
{% block content %} {% block content %}
{% if requested_by %}{% blocktrans with workflow=workflow.name|safe title=page.get_admin_display_title|safe requester=requested_by|user_display_name|safe %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.{% endblocktrans %} {% if requested_by %}{% blocktrans trimmed with workflow=workflow.name|safe title=page.get_admin_display_title|safe requester=requested_by|user_display_name|safe %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}" by {{ requester }}.{% endblocktrans %}
{% else %}{% blocktrans with workflow=workflow.name|safe title=page.get_admin_display_title|safe %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".{% endblocktrans %} {% else %}{% blocktrans trimmed with workflow=workflow.name|safe title=page.get_admin_display_title|safe %}The page "{{ title }}" has been submitted for moderation to workflow "{{ workflow }}".{% endblocktrans %}
{% endif %} {% endif %}
{% trans "You can edit the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %} {% trans "You can edit the page here:" %} {{ settings.BASE_URL }}{% url 'wagtailadmin_pages:edit' page.id %}

Wyświetl plik

@ -1,3 +1,3 @@
{% load i18n %} {% load i18n %}
{% blocktrans with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been submitted to workflow "{{ workflow }}" {% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title|safe workflow=workflow.name|safe %}The page "{{ title }}" has been submitted to workflow "{{ workflow }}" {% endblocktrans %}

Wyświetl plik

@ -2,9 +2,9 @@
<li class="footer__container footer__container--hidden" data-unsaved-warning> <li class="footer__container footer__container--hidden" data-unsaved-warning>
<div hidden data-unsaved-type="any" class="footer__save-warning footer__emphasise-span-tags"> <div hidden data-unsaved-type="any" class="footer__save-warning footer__emphasise-span-tags">
<div> <div>
<b hidden data-unsaved-type="edits">{% blocktrans %}You have <span>unsaved edits</span>{% endblocktrans %}</b> <b hidden data-unsaved-type="edits">{% blocktrans trimmed %}You have <span>unsaved edits</span>{% endblocktrans %}</b>
<b hidden data-unsaved-type="comments">{% blocktrans %}You have <span>unsaved comments</span>{% endblocktrans %}</b> <b hidden data-unsaved-type="comments">{% blocktrans trimmed %}You have <span>unsaved comments</span>{% endblocktrans %}</b>
<b hidden data-unsaved-type="all">{% blocktrans %}You have <span>unsaved edits</span> and <span>comments</span>{% endblocktrans %}</b> <b hidden data-unsaved-type="all">{% blocktrans trimmed %}You have <span>unsaved edits</span> and <span>comments</span>{% endblocktrans %}</b>
<p>{% trans 'Save the page before leaving' %}</p> <p>{% trans 'Save the page before leaving' %}</p>
</div> </div>
</div> </div>

Wyświetl plik

@ -2,7 +2,7 @@
{% load i18n %} {% load i18n %}
{% load wagtailadmin_tags %} {% load wagtailadmin_tags %}
{% block titletag %}{% blocktrans with title=parent_page.get_admin_display_title %}Create a page in {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=parent_page.get_admin_display_title %}Create a page in {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Create a page in" as create_str %} {% trans "Create a page in" as create_str %}
@ -26,7 +26,7 @@
</div> </div>
<small class="col4" style="text-align:end"> <small class="col4" style="text-align:end">
<a href="{% url 'wagtailadmin_pages:type_use' app_label model_name %}" class="nolink">{% blocktrans with page_type=verbose_name %}Pages using {{ page_type }}{% endblocktrans %}</a> <a href="{% url 'wagtailadmin_pages:type_use' app_label model_name %}" class="nolink">{% blocktrans trimmed with page_type=verbose_name %}Pages using {{ page_type }}{% endblocktrans %}</a>
</small> </small>
</div> </div>

Wyświetl plik

@ -1,7 +1,7 @@
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans count counter=items|length %}Delete 1 page {% plural %}Delete {{ counter }} pages{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed count counter=items|length %}Delete 1 page {% plural %}Delete {{ counter }} pages{% endblocktrans %}{% endblock %}
{% block header %} {% block header %}
{% trans "Delete" as del_str %} {% trans "Delete" as del_str %}
@ -17,7 +17,7 @@
<a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a> <a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
{% if page.descendant_count %} {% if page.descendant_count %}
<p> <p>
{% blocktrans count counter=page.descendant_count %} {% blocktrans trimmed count counter=page.descendant_count %}
This will also delete one more subpage. This will also delete one more subpage.
{% plural %} {% plural %}
This will also delete {{ counter }} more subpages. This will also delete {{ counter }} more subpages.
@ -32,7 +32,7 @@
{% block items_with_no_access %} {% block items_with_no_access %}
{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this page{% plural %}You don't have permission to delete these pages{% endblocktrans %} {% blocktrans trimmed asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this page{% plural %}You don't have permission to delete these pages{% endblocktrans %}
{% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %}
{% endblock items_with_no_access %} {% endblock items_with_no_access %}

Wyświetl plik

@ -1,7 +1,7 @@
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans count counter=items|length %}Move 1 page{% plural %}Move {{ counter }} pages{% endblocktrans %} {% block titletag %}{% blocktrans trimmed count counter=items|length %}Move 1 page{% plural %}Move {{ counter }} pages{% endblocktrans %}
{% endblock %} {% endblock %}
{% block header %} {% block header %}
@ -18,7 +18,7 @@
<a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a> <a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
{% if not page.item.is_leaf %} {% if not page.item.is_leaf %}
<p> <p>
{% blocktrans count counter=page.child_pages %} {% blocktrans trimmed count counter=page.child_pages %}
This page has one child page This page has one child page
{% plural %} {% plural %}
This page has {{ counter }} child pages This page has {{ counter }} child pages
@ -33,13 +33,13 @@
{% block items_with_no_access %} {% block items_with_no_access %}
{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to move this page{% plural %}You don't have permission to move these pages{% endblocktrans %} {% blocktrans trimmed asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to move this page{% plural %}You don't have permission to move these pages{% endblocktrans %}
{% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %}
{% blocktrans asvar no_access_msg with dest_title=destination.title count counter=items_with_no_access|length %}The following page cannot be moved to {{dest_title}} {% plural %}The following pages cannot be moved to {{dest_title}}{% endblocktrans %} {% blocktrans trimmed asvar no_access_msg with dest_title=destination.title count counter=items_with_no_access|length %}The following page cannot be moved to {{dest_title}} {% plural %}The following pages cannot be moved to {{dest_title}}{% endblocktrans %}
{% include './list_items_with_no_access.html' with items=pages_without_destination_access no_access_msg=no_access_msg %} {% include './list_items_with_no_access.html' with items=pages_without_destination_access no_access_msg=no_access_msg %}
{% blocktrans asvar no_access_msg count counter=pages_with_duplicate_slugs|length %}The following page cannot be moved due to duplicate slug{% plural %}The following pages cannot be moved due to duplicate slugs{% endblocktrans %} {% blocktrans trimmed asvar no_access_msg count counter=pages_with_duplicate_slugs|length %}The following page cannot be moved due to duplicate slug{% plural %}The following pages cannot be moved due to duplicate slugs{% endblocktrans %}
{% include './list_items_with_no_access.html' with items=pages_with_duplicate_slugs no_access_msg=no_access_msg %} {% include './list_items_with_no_access.html' with items=pages_with_duplicate_slugs no_access_msg=no_access_msg %}
{% trans "There is no valid destination page for these pages" as no_access_msg %} {% trans "There is no valid destination page for these pages" as no_access_msg %}

Wyświetl plik

@ -1,7 +1,7 @@
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans count counter=items|length %}Publish 1 page {% plural %}Publish {{ counter }} pages{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed count counter=items|length %}Publish 1 page {% plural %}Publish {{ counter }} pages{% endblocktrans %}{% endblock %}
{% block header %} {% block header %}
{% trans "Publish" as publish_str %} {% trans "Publish" as publish_str %}
@ -17,7 +17,7 @@
<a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a> <a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
{% if page.draft_descendant_count %} {% if page.draft_descendant_count %}
<p> <p>
{% blocktrans count counter=page.draft_descendant_count %} {% blocktrans trimmed count counter=page.draft_descendant_count %}
This page has one unpublished subpage This page has one unpublished subpage
{% plural %} {% plural %}
This page has {{ counter }} unpublished subpages This page has {{ counter }} unpublished subpages
@ -32,7 +32,7 @@
{% block items_with_no_access %} {% block items_with_no_access %}
{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to publish this page{% plural %}You don't have permission to publish these pages{% endblocktrans %} {% blocktrans trimmed asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to publish this page{% plural %}You don't have permission to publish these pages{% endblocktrans %}
{% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %}
{% endblock items_with_no_access %} {% endblock items_with_no_access %}

Wyświetl plik

@ -1,7 +1,7 @@
{% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %} {% extends 'wagtailadmin/bulk_actions/confirmation/base.html' %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans count counter=items|length %}Unpublish 1 page {% plural %}Unpublish {{ counter }} pages{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed count counter=items|length %}Unpublish 1 page {% plural %}Unpublish {{ counter }} pages{% endblocktrans %}{% endblock %}
{% block header %} {% block header %}
{% trans "Unpublish" as unpublish_str %} {% trans "Unpublish" as unpublish_str %}
@ -17,7 +17,7 @@
<a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a> <a href="{% url 'wagtailadmin_pages:edit' page.item.id %}" target="_blank" rel="noreferrer">{{ page.item.get_admin_display_title }}</a>
<p> <p>
{% if page.live_descendant_count %} {% if page.live_descendant_count %}
{% blocktrans count counter=page.live_descendant_count %} {% blocktrans trimmed count counter=page.live_descendant_count %}
This page has one subpage This page has one subpage
{% plural %} {% plural %}
This page has {{ counter }} subpages This page has {{ counter }} subpages
@ -32,7 +32,7 @@
{% block items_with_no_access %} {% block items_with_no_access %}
{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to unpublish this page{% plural %}You don't have permission to unpublish these pages{% endblocktrans %} {% blocktrans trimmed asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to unpublish this page{% plural %}You don't have permission to unpublish these pages{% endblocktrans %}
{% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% include './list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %}
{% endblock items_with_no_access %} {% endblock items_with_no_access %}

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans with title=page.get_admin_display_title %}Convert alias {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.get_admin_display_title %}Convert alias {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Convert alias" as del_str %} {% trans "Convert alias" as del_str %}

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans with title=page.get_admin_display_title %}Delete {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.get_admin_display_title %}Delete {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Delete" as del_str %} {% trans "Delete" as del_str %}
@ -10,7 +10,7 @@
<p> <p>
{% trans 'Are you sure you want to delete this page?' %} {% trans 'Are you sure you want to delete this page?' %}
{% if descendant_count %} {% if descendant_count %}
{% blocktrans count counter=descendant_count %} {% blocktrans trimmed count counter=descendant_count %}
This will also delete one more subpage. This will also delete one more subpage.
{% plural %} {% plural %}
This will also delete {{ descendant_count }} more subpages. This will also delete {{ descendant_count }} more subpages.
@ -28,7 +28,7 @@
{% page_permissions page as page_perms %} {% page_permissions page as page_perms %}
{% if page_perms.can_unpublish %} {% if page_perms.can_unpublish %}
{% url 'wagtailadmin_pages:unpublish' page.id as unpublish_url %} {% url 'wagtailadmin_pages:unpublish' page.id as unpublish_url %}
<p style="margin-top: 1em">{% blocktrans %}Alternatively you can <a href="{{ unpublish_url }}">unpublish the page</a>. This removes the page from public view and you can edit or publish it again later.{% endblocktrans %}</p> <p style="margin-top: 1em">{% blocktrans trimmed %}Alternatively you can <a href="{{ unpublish_url }}">unpublish the page</a>. This removes the page from public view and you can edit or publish it again later.{% endblocktrans %}</p>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

Wyświetl plik

@ -1,15 +1,15 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with title=page_to_move.get_admin_display_title %}Move {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page_to_move.get_admin_display_title %}Move {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Move" as move_str %} {% trans "Move" as move_str %}
{% include "wagtailadmin/shared/header.html" with title=move_str subtitle=page_to_move.get_admin_display_title icon="doc-empty-inverse" %} {% include "wagtailadmin/shared/header.html" with title=move_str subtitle=page_to_move.get_admin_display_title icon="doc-empty-inverse" %}
<div class="nice-padding"> <div class="nice-padding">
{% if page_to_move.is_leaf %} {% if page_to_move.is_leaf %}
<p>{% blocktrans with title=destination.get_admin_display_title %}Are you sure you want to move this page into '{{ title }}'?{% endblocktrans %}</p> <p>{% blocktrans trimmed with title=destination.get_admin_display_title %}Are you sure you want to move this page into '{{ title }}'?{% endblocktrans %}</p>
{% else %} {% else %}
<p>{% blocktrans with title=destination.get_admin_display_title %}Are you sure you want to move this page and all of its children into '{{ title }}'?{% endblocktrans %}</p> <p>{% 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 %}</p>
{% endif %} {% endif %}
<form action="{% url 'wagtailadmin_pages:move_confirm' page_to_move.id destination.id %}" method="POST"> <form action="{% url 'wagtailadmin_pages:move_confirm' page_to_move.id destination.id %}" method="POST">

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with title=page.get_admin_display_title %}Unpublish {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.get_admin_display_title %}Unpublish {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Unpublish" as unpublish_str %} {% trans "Unpublish" as unpublish_str %}
{% include "wagtailadmin/shared/header.html" with title=unpublish_str subtitle=page.get_admin_display_title icon="doc-empty-inverse" %} {% include "wagtailadmin/shared/header.html" with title=unpublish_str subtitle=page.get_admin_display_title icon="doc-empty-inverse" %}
@ -17,7 +17,7 @@
<div class="field-content"> <div class="field-content">
<div class="input"> <div class="input">
<input id="id_include_descendants" name="include_descendants" type="checkbox"> <input id="id_include_descendants" name="include_descendants" type="checkbox">
<label for="id_include_descendants" class="plain-checkbox-label">{% blocktrans count counter=live_descendant_count %} <label for="id_include_descendants" class="plain-checkbox-label">{% blocktrans trimmed count counter=live_descendant_count %}
This page has one subpage. Unpublish this too This page has one subpage. Unpublish this too
{% plural %} {% plural %}
This page has {{ live_descendant_count }} subpages. Unpublish these too This page has {{ live_descendant_count }} subpages. Unpublish these too

Wyświetl plik

@ -5,11 +5,11 @@
<div class="nice-padding"> <div class="nice-padding">
<p> <p>
{% if needs_changes %} {% if needs_changes %}
{% blocktrans %} {% blocktrans trimmed %}
This page was marked as needing changes at <strong>{{ task }}</strong> in <strong>{{ workflow }}</strong>. This page was marked as needing changes at <strong>{{ task }}</strong> in <strong>{{ workflow }}</strong>.
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% blocktrans %} {% blocktrans trimmed %}
This page is currently at <strong>{{ task }}</strong> in <strong>{{ workflow }}</strong>. This page is currently at <strong>{{ task }}</strong> in <strong>{{ workflow }}</strong>.
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with page_class_verbose_name=page_class.get_verbose_name %}Pages using {{ page_class_verbose_name }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with page_class_verbose_name=page_class.get_verbose_name %}Pages using {{ page_class_verbose_name }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Pages using" as pages_str %} {% trans "Pages using" as pages_str %}

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with title=page.specific_deferred.get_admin_display_title %}Copy {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.specific_deferred.get_admin_display_title %}Copy {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Copy" as copy_str %} {% trans "Copy" as copy_str %}
{% include "wagtailadmin/shared/header.html" with title=copy_str subtitle=page.specific_deferred.get_admin_display_title icon="doc-empty-inverse" %} {% include "wagtailadmin/shared/header.html" with title=copy_str subtitle=page.specific_deferred.get_admin_display_title icon="doc-empty-inverse" %}

Wyświetl plik

@ -2,7 +2,7 @@
{% load wagtailadmin_tags %} {% load wagtailadmin_tags %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with page_type=content_type.model_class.get_verbose_name %}New {{ page_type }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with page_type=content_type.model_class.get_verbose_name %}New {{ page_type }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}page-editor create model-{{ content_type.model }}{% endblock %} {% block bodyclass %}page-editor create model-{{ content_type.model }}{% endblock %}
{% block content %} {% block content %}

Wyświetl plik

@ -2,7 +2,7 @@
{% load wagtailadmin_tags %} {% load wagtailadmin_tags %}
{% load i18n %} {% load i18n %}
{% load l10n %} {% load l10n %}
{% block titletag %}{% blocktrans with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }}: {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }}: {{ title }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}page-editor {% if page.live %}page-is-live{% endif %} model-{{ content_type.model }} {% if page_locked %}page-locked{% endif %}{% endblock %} {% block bodyclass %}page-editor {% if page.live %}page-is-live{% endif %} model-{{ content_type.model }} {% if page_locked %}page-locked{% endif %}{% endblock %}
{% block content %} {% block content %}
@ -12,10 +12,10 @@
{% explorer_breadcrumb page page_perms=page_perms show_header_buttons=True %} {% explorer_breadcrumb page page_perms=page_perms show_header_buttons=True %}
<div class="row row-flush"> <div class="row row-flush">
<div class="left col9 header-title" title="{% blocktrans with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }}{% endblocktrans %}"> <div class="left col9 header-title" title="{% blocktrans trimmed with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }}{% endblocktrans %}">
<h1> <h1>
{% icon name="doc-empty-inverse" class_name="header-title-icon" %} {% icon name="doc-empty-inverse" class_name="header-title-icon" %}
{% blocktrans with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }} <span>{{ title }}</span>{% endblocktrans %} {% blocktrans trimmed with title=page.get_admin_display_title page_type=content_type.model_class.get_verbose_name %}Editing {{ page_type }} <span>{{ title }}</span>{% endblocktrans %}
</h1> </h1>
</div> </div>
<div class="right col3"> <div class="right col3">

Wyświetl plik

@ -1,7 +1,7 @@
{% extends 'wagtailadmin/reports/base_report.html' %} {% extends 'wagtailadmin/reports/base_report.html' %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans with title=subtitle %}Page history for {{ subtitle }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=subtitle %}Page history for {{ subtitle }}{% endblocktrans %}{% endblock %}
{% block actions %} {% block actions %}
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" class="button bicolor icon icon-edit">{% trans "Edit this page" %}</a> <a href="{% url 'wagtailadmin_pages:edit' page.id %}" class="button bicolor icon icon-edit">{% trans "Edit this page" %}</a>
@ -47,7 +47,7 @@
{% include "wagtailadmin/shared/user_avatar.html" with user=entry.user username=entry.user_display_name %} {% include "wagtailadmin/shared/user_avatar.html" with user=entry.user username=entry.user_display_name %}
</td> </td>
<td class="updated"> <td class="updated">
<div class="human-readable-date" title="{{ entry.timestamp|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=entry.timestamp|timesince %}{{ time_period }} ago{% endblocktrans %}</div> <div class="human-readable-date" title="{{ entry.timestamp|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=entry.timestamp|timesince %}{{ time_period }} ago{% endblocktrans %}</div>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load wagtailadmin_tags i18n %} {% load wagtailadmin_tags i18n %}
{% block titletag %}{% blocktrans with title=parent_page.get_admin_display_title %}Exploring {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=parent_page.get_admin_display_title %}Exploring {{ title }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}page-explorer {% if ordering == 'ord' %}reordering{% endif %}{% endblock %} {% block bodyclass %}page-explorer {% if ordering == 'ord' %}reordering{% endif %}{% endblock %}
{% block content %} {% block content %}

Wyświetl plik

@ -24,7 +24,7 @@
{% block parent_page_title %} {% block parent_page_title %}
{% endblock %} {% endblock %}
</td> </td>
<td class="updated" valign="bottom">{% if parent_page.latest_revision_created_at %}<div class="human-readable-date" title="{{ parent_page.latest_revision_created_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=parent_page.latest_revision_created_at|timesince %}{{ time_period }} ago{% endblocktrans %}</div>{% endif %}</td> <td class="updated" valign="bottom">{% if parent_page.latest_revision_created_at %}<div class="human-readable-date" title="{{ parent_page.latest_revision_created_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=parent_page.latest_revision_created_at|timesince %}{{ time_period }} ago{% endblocktrans %}</div>{% endif %}</td>
<td class="type" valign="bottom"> <td class="type" valign="bottom">
{% if not parent_page.is_root %} {% if not parent_page.is_root %}
{{ parent_page.content_type.model_class.get_verbose_name }} {{ parent_page.content_type.model_class.get_verbose_name }}
@ -68,7 +68,7 @@
{% endblock %} {% endblock %}
</td> </td>
{% endif %} {% endif %}
<td class="updated" valign="top">{% if page.latest_revision_created_at %}<div class="human-readable-date" title="{{ page.latest_revision_created_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=page.latest_revision_created_at|timesince %}{{ time_period }} ago{% endblocktrans %}</div>{% endif %}</td> <td class="updated" valign="top">{% if page.latest_revision_created_at %}<div class="human-readable-date" title="{{ page.latest_revision_created_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=page.latest_revision_created_at|timesince %}{{ time_period }} ago{% endblocktrans %}</div>{% endif %}</td>
<td class="type" valign="top">{{ page.content_type.model_class.get_verbose_name }}</td> <td class="type" valign="top">{{ page.content_type.model_class.get_verbose_name }}</td>
<td class="status" valign="top"> <td class="status" valign="top">
{% include "wagtailadmin/shared/page_status_tag.html" with page=page %} {% include "wagtailadmin/shared/page_status_tag.html" with page=page %}

Wyświetl plik

@ -17,7 +17,7 @@
{% if perms.wagtailcore.add_site %} {% if perms.wagtailcore.add_site %}
{% url 'wagtailsites:index' as wagtailsites_index_url %} {% url 'wagtailsites:index' as wagtailsites_index_url %}
<p> <p>
{% blocktrans %} {% blocktrans trimmed %}
The root level is where you can add new sites to your Wagtail installation. Pages created here will not be accessible at any URL until they are associated with a site. The root level is where you can add new sites to your Wagtail installation. Pages created here will not be accessible at any URL until they are associated with a site.
{% endblocktrans %} {% endblocktrans %}
{% if wagtailsites_index_url %} {% if wagtailsites_index_url %}
@ -25,12 +25,12 @@
{% endif %} {% endif %}
</p> </p>
<p> <p>
{% blocktrans %} {% blocktrans trimmed %}
If you just want to add pages to an existing site, create them as children of the homepage instead. If you just want to add pages to an existing site, create them as children of the homepage instead.
{% endblocktrans %} {% endblocktrans %}
</p> </p>
{% else %} {% else %}
{% blocktrans %} {% blocktrans trimmed %}
Pages created here will not be accessible at any URL. To add pages to an existing site, create them as children of the homepage. Pages created here will not be accessible at any URL. To add pages to an existing site, create them as children of the homepage.
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
@ -41,14 +41,14 @@
{% icon name='warning' %} {% icon name='warning' %}
{% if perms.wagtailcore.add_site %} {% if perms.wagtailcore.add_site %}
{% url 'wagtailsites:index' as wagtailsites_index_url %} {% url 'wagtailsites:index' as wagtailsites_index_url %}
{% blocktrans %} {% blocktrans trimmed %}
There is no site set up for this location. Pages created here will not be accessible at any URL until a site is associated with this location. There is no site set up for this location. Pages created here will not be accessible at any URL until a site is associated with this location.
{% endblocktrans %} {% endblocktrans %}
{% if wagtailsites_index_url %} {% if wagtailsites_index_url %}
<a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a> <a href="{{ wagtailsites_index_url }}">{% trans "Configure a site now." %}</a>
{% endif %} {% endif %}
{% else %} {% else %}
{% blocktrans %} {% blocktrans trimmed %}
There is no site record for this location. Pages created here will not be accessible at any URL. There is no site record for this location. Pages created here will not be accessible at any URL.
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
@ -69,5 +69,5 @@
{% block no_results %} {% block no_results %}
{% url 'wagtailadmin_pages:add_subpage' parent_page.id as add_page_url%} {% url 'wagtailadmin_pages:add_subpage' parent_page.id as add_page_url%}
<tr><td colspan="3" class="no-results-message"><p>{% trans "No pages have been created at this location." %}{% if parent_page and parent_page_perms.can_add_subpage %} {% blocktrans %}Why not <a href="{{ add_page_url }}">create one</a>?{% endblocktrans %}{% endif %}</p></td></tr> <tr><td colspan="3" class="no-results-message"><p>{% trans "No pages have been created at this location." %}{% if parent_page and parent_page_perms.can_add_subpage %} {% blocktrans trimmed %}Why not <a href="{{ add_page_url }}">create one</a>?{% endblocktrans %}{% endif %}</p></td></tr>
{% endblock %} {% endblock %}

Wyświetl plik

@ -6,6 +6,6 @@ Navigation controls for the page listing in 'choose' mode
<td class="{% if allow_navigation and page.can_descend %}children{% endif %}"> <td class="{% if allow_navigation and page.can_descend %}children{% endif %}">
{% if allow_navigation and page.can_descend %} {% if allow_navigation and page.can_descend %}
<a href="{% url 'wagtailadmin_choose_page_child' page.id %}{% querystring p=None %}" class="icon text-replace icon-arrow-right navigate-pages" title="{% blocktrans with title=page.get_admin_display_title %}Explore subpages of '{{ title }}'{% endblocktrans %}">{% trans 'Explore' %}</a> <a href="{% url 'wagtailadmin_choose_page_child' page.id %}{% querystring p=None %}" class="icon text-replace icon-arrow-right navigate-pages" title="{% blocktrans trimmed with title=page.get_admin_display_title %}Explore subpages of '{{ title }}'{% endblocktrans %}">{% trans 'Explore' %}</a>
{% endif %} {% endif %}
</td> </td>

Wyświetl plik

@ -9,15 +9,15 @@ Navigation controls for the page listing in 'explore' mode
<a <a
href="{% url 'wagtailadmin_explore' page.id %}" href="{% url 'wagtailadmin_explore' page.id %}"
class="icon icon-arrow-right text-replace" class="icon icon-arrow-right text-replace"
title="{% blocktrans with title=page.get_admin_display_title %}Explore child pages of '{{ title }}'{% endblocktrans %}" title="{% blocktrans trimmed with title=page.get_admin_display_title %}Explore child pages of '{{ title }}'{% endblocktrans %}"
aria-label="{% blocktrans with title=page.get_admin_display_title %}Explore child pages of '{{ title }}'{% endblocktrans %}" aria-label="{% blocktrans trimmed with title=page.get_admin_display_title %}Explore child pages of '{{ title }}'{% endblocktrans %}"
></a> ></a>
{% elif page_perms.can_add_subpage %} {% elif page_perms.can_add_subpage %}
<a <a
href="{% url 'wagtailadmin_pages:add_subpage' page.id %}" href="{% url 'wagtailadmin_pages:add_subpage' page.id %}"
class="icon icon-plus-inverse text-replace" class="icon icon-plus-inverse text-replace"
title="{% blocktrans with title=page.get_admin_display_title %}Add a child page to '{{ title }}'{% endblocktrans %}" title="{% blocktrans trimmed with title=page.get_admin_display_title %}Add a child page to '{{ title }}'{% endblocktrans %}"
aria-label="{% blocktrans with title=page.get_admin_display_title %}Add a child page to '{{ title }}'{% endblocktrans %}" aria-label="{% blocktrans trimmed with title=page.get_admin_display_title %}Add a child page to '{{ title }}'{% endblocktrans %}"
></a> ></a>
{% endif %} {% endif %}
</td> </td>

Wyświetl plik

@ -6,6 +6,6 @@ Navigation controls for the page listing in 'move' mode
<td class="{% if page.can_descend %}children{% endif %}"> <td class="{% if page.can_descend %}children{% endif %}">
{% if page.can_descend %} {% if page.can_descend %}
<a href="{% url 'wagtailadmin_pages:move_choose_destination' page_to_move.id page.id %}" class="icon text-replace icon-arrow-right navigate-pages" title="{% blocktrans with title=page.get_admin_display_title %}Explore subpages of '{{ title }}'{% endblocktrans %}">{% trans 'Explore' %}</a> <a href="{% url 'wagtailadmin_pages:move_choose_destination' page_to_move.id page.id %}" class="icon text-replace icon-arrow-right navigate-pages" title="{% blocktrans trimmed with title=page.get_admin_display_title %}Explore subpages of '{{ title }}'{% endblocktrans %}">{% trans 'Explore' %}</a>
{% endif %} {% endif %}
</td> </td>

Wyświetl plik

@ -5,7 +5,7 @@ Pagination for page listings. Used by the `{% paginate %}` template tag.
{% endcomment %} {% endcomment %}
<nav class="pagination" aria-label="{% trans 'Pagination' %}"> <nav class="pagination" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans with page_number=page.number num_pages=paginator.num_pages %} <p>{% blocktrans trimmed with page_number=page.number num_pages=paginator.num_pages %}
Page {{ page_number }} of {{ num_pages }}. Page {{ page_number }} of {{ num_pages }}.
{% endblocktrans %}</p> {% endblocktrans %}</p>
<ul> <ul>

Wyświetl plik

@ -1,12 +1,12 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans with title=page_to_move.specific_deferred.get_admin_display_title %}Select a new parent page for {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page_to_move.specific_deferred.get_admin_display_title %}Select a new parent page for {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
<header class="nice-padding header-with-breadcrumb"> <header class="nice-padding header-with-breadcrumb">
{% move_breadcrumb page_to_move viewed_page %} {% move_breadcrumb page_to_move viewed_page %}
<h1> <h1>
{% icon name="doc-empty-inverse" class_name="header-title-icon" %} {% icon name="doc-empty-inverse" class_name="header-title-icon" %}
{% blocktrans with title=page_to_move.specific_deferred.get_admin_display_title %}Select a new parent page for <span>{{ title }}</span>{% endblocktrans %} {% blocktrans trimmed with title=page_to_move.specific_deferred.get_admin_display_title %}Select a new parent page for <span>{{ title }}</span>{% endblocktrans %}
</h1> </h1>
</header> </header>
<div class="nice-padding"> <div class="nice-padding">

Wyświetl plik

@ -9,7 +9,7 @@
</header> </header>
<div class="nice-padding"> <div class="nice-padding">
<p> <p>
{% blocktrans %} {% blocktrans trimmed %}
Impossible to preview this page, some errors are remaining. Impossible to preview this page, some errors are remaining.
Please close this tab, edit the page to fix these errors, Please close this tab, edit the page to fix these errors,
then use preview again. then use preview again.

Wyświetl plik

@ -1,7 +1,7 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans with title=page.get_admin_display_title %}Comparing {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.get_admin_display_title %}Comparing {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Comparing" as comparing_str %} {% trans "Comparing" as comparing_str %}
@ -44,13 +44,13 @@
{% icon name='help' %} {% icon name='help' %}
<p> <p>
{% if move > 0 %} {% if move > 0 %}
{% blocktrans count counter=move %} {% blocktrans trimmed count counter=move %}
Moved down 1 place. Moved down 1 place.
{% plural %} {% plural %}
Moved down {{ counter }} places. Moved down {{ counter }} places.
{% endblocktrans %} {% endblocktrans %}
{% elif move < 0 %} {% elif move < 0 %}
{% blocktrans count counter=move|abs %} {% blocktrans trimmed count counter=move|abs %}
Moved up 1 place. Moved up 1 place.
{% plural %} {% plural %}
Moved up {{ counter }} places. Moved up {{ counter }} places.

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with title=page.get_admin_display_title %}Unschedule Revision {{ revision.id }} for {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.get_admin_display_title %}Unschedule Revision {{ revision.id }} for {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Unschedule" as unschedule_str %} {% trans "Unschedule" as unschedule_str %}
{% include "wagtailadmin/shared/header.html" with title=unschedule_str subtitle=subtitle icon="doc-empty-inverse" %} {% include "wagtailadmin/shared/header.html" with title=unschedule_str subtitle=subtitle icon="doc-empty-inverse" %}

Wyświetl plik

@ -2,7 +2,7 @@
<div class="nice-padding"> <div class="nice-padding">
{% if pages %} {% if pages %}
<h2 role="alert"> <h2 role="alert">
{% blocktrans count counter=all_pages.count %} {% blocktrans trimmed count counter=all_pages.count %}
There is one matching page There is one matching page
{% plural %} {% plural %}
There are {{ counter }} matching pages There are {{ counter }} matching pages
@ -38,7 +38,7 @@
{% paginate pages base_url=pagination_base_url %} {% paginate pages base_url=pagination_base_url %}
{% else %} {% else %}
{% if query_string %} {% if query_string %}
<h2 role="alert">{% blocktrans %}Sorry, no pages match <em>{{ query_string }}</em>{% endblocktrans %}</h2> <h2 role="alert">{% blocktrans trimmed %}Sorry, no pages match <em>{{ query_string }}</em>{% endblocktrans %}</h2>
{% search_other %} {% search_other %}
{% else %} {% else %}

Wyświetl plik

@ -17,16 +17,16 @@
<h2>{% icon "clipboard-list" class_name="initial" %} {{ workflow_state.workflow.name }}</h2> <h2>{% icon "clipboard-list" class_name="initial" %} {{ workflow_state.workflow.name }}</h2>
<p> <p>
{% blocktrans with modified_by=workflow_state.requested_by|user_display_name %}Requested by <b>{{ modified_by }}</b>{% endblocktrans %} {% blocktrans trimmed with modified_by=workflow_state.requested_by|user_display_name %}Requested by <b>{{ modified_by }}</b>{% endblocktrans %}
<span class="avatar small"><img src="{% avatar_url workflow_state.requested_by size=25 %}" alt="" /></span> <span class="avatar small"><img src="{% avatar_url workflow_state.requested_by size=25 %}" alt="" /></span>
</p> </p>
<p> <p>
{% blocktrans with workflow_state.created_at as started_at %}Started at <b>{{ started_at }}</b>{% endblocktrans %} {% blocktrans trimmed with workflow_state.created_at as started_at %}Started at <b>{{ started_at }}</b>{% endblocktrans %}
</p> </p>
<p> <p>
{% blocktrans with workflow_state.get_status_display as status %}Status <span class="status-tag primary"> {{ status }}</span>{% endblocktrans %} {% blocktrans trimmed with workflow_state.get_status_display as status %}Status <span class="status-tag primary"> {{ status }}</span>{% endblocktrans %}
</p> </p>
<div class="workflow-progress-tabs__buttons"> <div class="workflow-progress-tabs__buttons">
@ -57,11 +57,11 @@
{% if not forloop.first %} {% if not forloop.first %}
{% trans "Page edited" as action %} {% trans "Page edited" as action %}
{% if revision.user %} {% if revision.user %}
{% blocktrans with '<b>'|add:action|add:'</b>' as action and revision.user|user_display_name as who and revision.created_at as at %} {% blocktrans trimmed with '<b>'|add:action|add:'</b>' as action and revision.user|user_display_name as who and revision.created_at as at %}
{{ action }} by <b>{{ who }}</b> at <b>{{ at }}</b> {{ action }} by <b>{{ who }}</b> at <b>{{ at }}</b>
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% blocktrans with '<b>'|add:action|add:'</b>' as action and revision.created_at as at %} {% blocktrans trimmed with '<b>'|add:action|add:'</b>' as action and revision.created_at as at %}
{{ action }} at <b>{{ at }}</b> {{ action }} at <b>{{ at }}</b>
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
@ -72,11 +72,11 @@
<td> <td>
{% if task_state.status == 'approved' or task_state.status == 'rejected' %} {% if task_state.status == 'approved' or task_state.status == 'rejected' %}
{% if task_state.finished_by %} {% if task_state.finished_by %}
{% blocktrans with action='<div class="status-tag primary">'|add:task_state.get_status_display|add:'</div>'|safe who=task_state.finished_by|user_display_name at=task_state.finished_at %} {% blocktrans trimmed with action='<div class="status-tag primary">'|add:task_state.get_status_display|add:'</div>'|safe who=task_state.finished_by|user_display_name at=task_state.finished_at %}
{{ action }} by <b>{{ who }}</b> at <b>{{ at }}</b> {{ action }} by <b>{{ who }}</b> at <b>{{ at }}</b>
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% blocktrans with action='<div class="status-tag primary">'|add:task_state.get_status_display|add:'</div>'|safe at=task_state.finished_at %} {% blocktrans trimmed with action='<div class="status-tag primary">'|add:task_state.get_status_display|add:'</div>'|safe at=task_state.finished_at %}
{{ action }} at <b>{{ at }}</b> {{ action }} at <b>{{ at }}</b>
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
@ -113,7 +113,7 @@
{% elif timeline_item.action == 'page_edited' %} {% elif timeline_item.action == 'page_edited' %}
{% trans "Page edited" as action %} {% trans "Page edited" as action %}
{% if revision.user %} {% if revision.user %}
{% blocktrans with '<b>'|add:action|add:'</b>' as action and timeline_item.revision.user|user_display_name as who %} {% blocktrans trimmed with '<b>'|add:action|add:'</b>' as action and timeline_item.revision.user|user_display_name as who %}
{{ action }} by <b>{{ who }}</b> {{ action }} by <b>{{ who }}</b>
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
@ -123,7 +123,7 @@
<b>{{ timeline_item.task_state.task }}</b> <b>{{ timeline_item.task_state.task }}</b>
{% if timeline_item.task_state.finished_by %} {% if timeline_item.task_state.finished_by %}
{% blocktrans with action='<div class="status-tag primary">'|add:timeline_item.task_state.get_status_display|add:'</div>'|safe who=timeline_item.task_state.finished_by|user_display_name %} {% blocktrans trimmed with action='<div class="status-tag primary">'|add:timeline_item.task_state.get_status_display|add:'</div>'|safe who=timeline_item.task_state.finished_by|user_display_name %}
{{ action }} by <b>{{ who }}</b> {{ action }} by <b>{{ who }}</b>
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}

Wyświetl plik

@ -1,7 +1,7 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with title=page.specific_deferred.get_admin_display_title %}Workflow history for {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.specific_deferred.get_admin_display_title %}Workflow history for {{ title }}{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Workflow history for" as workflow_history_str %} {% trans "Workflow history for" as workflow_history_str %}

Wyświetl plik

@ -45,7 +45,7 @@
<td>{{ workflow_state.requested_by|user_display_name }}</td> <td>{{ workflow_state.requested_by|user_display_name }}</td>
<td> <td>
<div class="human-readable-date" title="{{ workflow_state.created_at|date:"DATETIME_FORMAT" }}"> <div class="human-readable-date" title="{{ workflow_state.created_at|date:"DATETIME_FORMAT" }}">
{% blocktrans with time_period=workflow_state.created_at|timesince %}{{ time_period }} ago{% endblocktrans %} {% blocktrans trimmed with time_period=workflow_state.created_at|timesince %}{{ time_period }} ago{% endblocktrans %}
</div> </div>
</td> </td>
</tr> </tr>

Wyświetl plik

@ -5,5 +5,5 @@
{% include "wagtailadmin/shared/pagination_nav.html" with items=workflow_states linkurl="wagtailadmin_pages:workflow_history" %} {% include "wagtailadmin/shared/pagination_nav.html" with items=workflow_states linkurl="wagtailadmin_pages:workflow_history" %}
{% else %} {% else %}
<p>{% blocktrans %}This page hasn't been submitted for moderation yet{% endblocktrans %}</p> <p>{% blocktrans trimmed %}This page hasn't been submitted for moderation yet{% endblocktrans %}</p>
{% endif %} {% endif %}

Wyświetl plik

@ -26,6 +26,6 @@
<p class="add"> <p class="add">
<button type="button" class="button bicolor button--icon" id="id_{{ self.formset.prefix }}-ADD"> <button type="button" class="button bicolor button--icon" id="id_{{ self.formset.prefix }}-ADD">
{% icon name="plus" wrapped=1 %} {% icon name="plus" wrapped=1 %}
{% blocktrans with label=self.label|lower %}Add {{ label }}{% endblocktrans %} {% blocktrans trimmed with label=self.label|lower %}Add {{ label }}{% endblocktrans %}
</button> </button>
</p> </p>

Wyświetl plik

@ -39,7 +39,7 @@
</td> </td>
<td class="updated" valign="top"> <td class="updated" valign="top">
<div class="human-readable-date" title="{{ page.last_published_at|date:'DATETIME_FORMAT' }}"> <div class="human-readable-date" title="{{ page.last_published_at|date:'DATETIME_FORMAT' }}">
{% blocktrans with time_period=page.last_published_at|timesince %} {% blocktrans trimmed with time_period=page.last_published_at|timesince %}
{{ time_period }} ago {{ time_period }} ago
{% endblocktrans %} {% endblocktrans %}
</div> </div>

Wyświetl plik

@ -17,16 +17,16 @@
{% with page.locked_at|date:"DATETIME_FORMAT" as locking_date %} {% with page.locked_at|date:"DATETIME_FORMAT" as locking_date %}
{% if page.locked_by %} {% if page.locked_by %}
{% if page.locked_by_id == request.user.pk %} {% if page.locked_by_id == request.user.pk %}
{% blocktrans %} {% blocktrans trimmed %}
Locked by <b>you</b> at <b>{{ locking_date }}</b> Locked by <b>you</b> at <b>{{ locking_date }}</b>
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% blocktrans with locked_by=page.locked_by %} {% blocktrans trimmed with locked_by=page.locked_by %}
Locked by <b>{{ locked_by }}</b> at <b>{{ locking_date }}</b> Locked by <b>{{ locked_by }}</b> at <b>{{ locking_date }}</b>
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
{% else %} {% else %}
{% blocktrans %} {% blocktrans trimmed %}
Locked at <b>{{ locking_date }}</b> Locked at <b>{{ locking_date }}</b>
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}

Wyświetl plik

@ -43,7 +43,7 @@
{% include "wagtailadmin/shared/user_avatar.html" with user=entry.user username=entry.user_display_name %} {% include "wagtailadmin/shared/user_avatar.html" with user=entry.user username=entry.user_display_name %}
</td> </td>
<td class="updated"> <td class="updated">
<div class="human-readable-date" title="{{ entry.timestamp|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=entry.timestamp|timesince %}{{ time_period }} ago{% endblocktrans %}</div> <div class="human-readable-date" title="{{ entry.timestamp|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=entry.timestamp|timesince %}{{ time_period }} ago{% endblocktrans %}</div>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}

Wyświetl plik

@ -60,6 +60,6 @@
</tbody> </tbody>
</table> </table>
{% else %} {% else %}
<p>{% blocktrans %}No pages have been submitted for moderation yet{% endblocktrans %}</p> <p>{% blocktrans trimmed %}No pages have been submitted for moderation yet{% endblocktrans %}</p>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

Wyświetl plik

@ -3,7 +3,7 @@
{% load wagtailadmin_tags %} {% load wagtailadmin_tags %}
<nav class="pagination" aria-label="{% trans 'Pagination' %}"> <nav class="pagination" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p> <p>{% blocktrans trimmed with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p>
<ul> <ul>
<li class="prev"> <li class="prev">
{% if items.has_previous %} {% if items.has_previous %}

Wyświetl plik

@ -9,7 +9,7 @@
{% resolve_url linkurl as url_path %} {% resolve_url linkurl as url_path %}
<nav class="pagination" aria-label="{% trans 'Pagination' %}"> <nav class="pagination" aria-label="{% trans 'Pagination' %}">
<p>{% blocktrans with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p> <p>{% blocktrans trimmed with page_num=items.number total_pages=items.paginator.num_pages %}Page {{ page_num }} of {{ total_pages }}.{% endblocktrans %}</p>
<ul> <ul>
<li class="prev"> <li class="prev">
{% if items.has_previous %} {% if items.has_previous %}

Wyświetl plik

@ -70,7 +70,7 @@
</script> </script>
<noscript class="capabilitymessage"> <noscript class="capabilitymessage">
{% blocktrans %} {% blocktrans trimmed %}
JavaScript is required to use Wagtail, but it is currently disabled.<br /> JavaScript is required to use Wagtail, but it is currently disabled.<br />
Here are the <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer">instructions how to enable JavaScript in your web browser</a>. Here are the <a href="https://www.enable-javascript.com/" target="_blank" rel="noreferrer">instructions how to enable JavaScript in your web browser</a>.
{% endblocktrans %} {% endblocktrans %}

Wyświetl plik

@ -1,6 +1,6 @@
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
<td {% if column.classname %}class="{{ column.classname }}"{% endif %}> <td {% if column.classname %}class="{{ column.classname }}"{% endif %}>
{% if value %} {% if value %}
<div class="human-readable-date" title="{{ value|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=value|timesince %}{{ time_period }} ago{% endblocktrans %}</div> <div class="human-readable-date" title="{{ value|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=value|timesince %}{{ time_period }} ago{% endblocktrans %}</div>
{% endif %} {% endif %}
</td> </td>

Wyświetl plik

@ -53,7 +53,7 @@
<td class="title"> <td class="title">
<div class="title-wrapper"> <div class="title-wrapper">
<a href="{% url 'wagtailadmin_workflows:usage' workflow.pk %}"> <a href="{% url 'wagtailadmin_workflows:usage' workflow.pk %}">
{% blocktrans count counter=workflow.all_pages.count %} {% blocktrans trimmed count counter=workflow.all_pages.count %}
1 page 1 page
{% plural %} {% plural %}
{{ counter }} pages {{ counter }} pages
@ -65,15 +65,15 @@
<ul class="workflow-tasks"> <ul class="workflow-tasks">
{% for task in workflow.tasks|slice:":5" %} {% for task in workflow.tasks|slice:":5" %}
<a href="{% url 'wagtailadmin_workflows:edit_task' task.pk %}"> <a href="{% url 'wagtailadmin_workflows:edit_task' task.pk %}">
<li class="workflow-tasks__task" data-wagtail-tooltip="{% blocktrans with forloop.counter as step_number %}Step {{ step_number }}{% endblocktrans %}: {{ task.name }}"> <li class="workflow-tasks__task" data-wagtail-tooltip="{% blocktrans trimmed with forloop.counter as step_number %}Step {{ step_number }}{% endblocktrans %}: {{ task.name }}">
<div class="workflow-tasks__step">{% blocktrans with forloop.counter as step_number %}Step {{ step_number }}{% endblocktrans %}</div> <div class="workflow-tasks__step">{% blocktrans trimmed with forloop.counter as step_number %}Step {{ step_number }}{% endblocktrans %}</div>
<h4 class="workflow-tasks__name">{{ task.name }}</h4> <h4 class="workflow-tasks__name">{{ task.name }}</h4>
</li> </li>
</a> </a>
{% endfor %} {% endfor %}
{% if workflow.tasks.count > 5 %} {% if workflow.tasks.count > 5 %}
<li class="workflow-tasks__extra-tasks"> <li class="workflow-tasks__extra-tasks">
{% blocktrans count counter=workflow.tasks.count|add:-5 %}+{{ counter }} more{% plural %}+{{ counter }} more{% endblocktrans %} {% blocktrans trimmed count counter=workflow.tasks.count|add:-5 %}+{{ counter }} more{% plural %}+{{ counter }} more{% endblocktrans %}
</li> </li>
{% endif %} {% endif %}
</ul> </ul>
@ -85,9 +85,9 @@
{% else %} {% else %}
{% url view.add_url_name as add_url %} {% url view.add_url_name as add_url %}
{% if showing_disabled %} {% if showing_disabled %}
<p>{% blocktrans %}No workflows have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p> <p>{% blocktrans trimmed %}No workflows have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% else %} {% else %}
<p>{% blocktrans %}There are no enabled workflows. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p> <p>{% blocktrans trimmed %}There are no enabled workflows. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

Wyświetl plik

@ -2,7 +2,7 @@
{% if tasks %} {% if tasks %}
{% if search_form.is_searching %} {% if search_form.is_searching %}
<h2 role="alert"> <h2 role="alert">
{% blocktrans count counter=tasks.paginator.count %} {% blocktrans trimmed count counter=tasks.paginator.count %}
There is {{ counter }} match There is {{ counter }} match
{% plural %} {% plural %}
There are {{ counter }} matches There are {{ counter }} matches
@ -50,7 +50,7 @@
{% trans "Not used" %} {% trans "Not used" %}
{% endfor %} {% endfor %}
{% if task.active_workflows.count > 5 %} {% if task.active_workflows.count > 5 %}
{% blocktrans count counter=task.active_workflows.count|add:-5 %}+{{ counter }} more{% plural %}+{{ counter }} more{% endblocktrans %} {% blocktrans trimmed count counter=task.active_workflows.count|add:-5 %}+{{ counter }} more{% plural %}+{{ counter }} more{% endblocktrans %}
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
@ -61,12 +61,12 @@
{% include "wagtailadmin/shared/pagination_nav.html" with items=tasks linkurl='wagtailadmin_workflows:task_chooser_results' %} {% include "wagtailadmin/shared/pagination_nav.html" with items=tasks linkurl='wagtailadmin_workflows:task_chooser_results' %}
{% else %} {% else %}
{% if all_tasks.exists %} {% if all_tasks.exists %}
<p role="alert">{% blocktrans %}Sorry, no tasks match "<em>{{ query_string }}</em>"{% endblocktrans %}</p> <p role="alert">{% blocktrans trimmed %}Sorry, no tasks match "<em>{{ query_string }}</em>"{% endblocktrans %}</p>
{% else %} {% else %}
<p> <p>
{% trans "You haven't created any tasks." %} {% trans "You haven't created any tasks." %}
{% if can_create %} {% if can_create %}
{% blocktrans %} {% blocktrans trimmed %}
Why not <a class="create-one-now" href="#">create one now</a>? Why not <a class="create-one-now" href="#">create one now</a>?
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}

Wyświetl plik

@ -60,7 +60,7 @@
{% trans "Not used" %} {% trans "Not used" %}
{% endfor %} {% endfor %}
{% if task.active_workflows.count > 5 %} {% if task.active_workflows.count > 5 %}
{% blocktrans count counter=task.active_workflows.count|add:-5 %}+{{ counter }} more{% plural %}+{{ counter }} more{% endblocktrans %} {% blocktrans trimmed count counter=task.active_workflows.count|add:-5 %}+{{ counter }} more{% plural %}+{{ counter }} more{% endblocktrans %}
{% endif %} {% endif %}
</td> </td>
</tr> </tr>
@ -70,9 +70,9 @@
{% else %} {% else %}
{% url view.add_url_name as add_url %} {% url view.add_url_name as add_url %}
{% if showing_disabled %} {% if showing_disabled %}
<p>{% blocktrans %}No tasks have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p> <p>{% blocktrans trimmed %}No tasks have been created. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% else %} {% else %}
<p>{% blocktrans %}There are no enabled tasks. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p> <p>{% blocktrans trimmed %}There are no enabled tasks. Why not <a href="{{ add_url }}">add one</a>?{% endblocktrans %}</p>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with name=workflow.name %}Pages that use workflow '{{ name }}'{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with name=workflow.name %}Pages that use workflow '{{ name }}'{% endblocktrans %}{% endblock %}
{% block content %} {% block content %}
{% trans "Pages that use workflow" as usage_str %} {% trans "Pages that use workflow" as usage_str %}
{% include "wagtailadmin/shared/header.html" with title=usage_str subtitle=workflow.name %} {% include "wagtailadmin/shared/header.html" with title=usage_str subtitle=workflow.name %}

Wyświetl plik

@ -9,7 +9,7 @@
Submitted to <em>{{ workflow_name }}</em> at {{ started_at }} Submitted to <em>{{ workflow_name }}</em> at {{ started_at }}
{% endblocktrans %} {% endblocktrans %}
{% if workflow_state.requested_by %} {% if workflow_state.requested_by %}
{% blocktrans with modified_by=workflow_state.requested_by|user_display_name %}by {{ modified_by }}{% endblocktrans %} {% blocktrans trimmed with modified_by=workflow_state.requested_by|user_display_name %}by {{ modified_by }}{% endblocktrans %}
<span class="avatar small"><img src="{% avatar_url page.get_latest_revision.user size=25 %}" alt="" /></span> <span class="avatar small"><img src="{% avatar_url page.get_latest_revision.user size=25 %}" alt="" /></span>
{% endif %} {% endif %}
</p> </p>

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n %} {% load i18n %}
{% block titletag %}{% blocktrans with title=page.title %}Delete form data {{ title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with title=page.title %}Delete form data {{ title }}{% endblocktrans %}{% endblock %}
{% block bodyclass %}menu-explorer{% endblock %} {% block bodyclass %}menu-explorer{% endblock %}
{% block content %} {% block content %}
@ -9,7 +9,7 @@
<div class="nice-padding"> <div class="nice-padding">
<p> <p>
{% blocktrans count counter=submissions.count %} {% blocktrans trimmed count counter=submissions.count %}
Are you sure you want to delete this form submission? Are you sure you want to delete this form submission?
{% plural %} {% plural %}
Are you sure you want to delete these form submissions? Are you sure you want to delete these form submissions?

Wyświetl plik

@ -1,6 +1,6 @@
{% extends "wagtailadmin/base.html" %} {% extends "wagtailadmin/base.html" %}
{% load i18n wagtailadmin_tags %} {% load i18n wagtailadmin_tags %}
{% block titletag %}{% blocktrans with form_title=form_page.title|capfirst %}Submissions of {{ form_title }}{% endblocktrans %}{% endblock %} {% block titletag %}{% blocktrans trimmed with form_title=form_page.title|capfirst %}Submissions of {{ form_title }}{% endblocktrans %}{% endblock %}
{% block extra_js %} {% block extra_js %}
{{ block.super }} {{ block.super }}
@ -88,7 +88,7 @@
<div class="col header-title"> <div class="col header-title">
<h1> <h1>
{% icon name="form" class_name="header-title-icon" %} {% icon name="form" class_name="header-title-icon" %}
{% blocktrans with form_title=form_page.title|capfirst %}Form data <span>{{ form_title }}</span>{% endblocktrans %} {% blocktrans trimmed with form_title=form_page.title|capfirst %}Form data <span>{{ form_title }}</span>{% endblocktrans %}
</h1> </h1>
</div> </div>
<div class="col search-bar"> <div class="col search-bar">
@ -121,7 +121,7 @@
{% include "wagtailadmin/shared/pagination_nav.html" with items=page_obj %} {% include "wagtailadmin/shared/pagination_nav.html" with items=page_obj %}
</form> </form>
{% else %} {% else %}
<p class="no-results-message">{% blocktrans with title=form_page.title %}There have been no submissions of the '{{ title }}' form.{% endblocktrans %}</p> <p class="no-results-message">{% blocktrans trimmed with title=form_page.title %}There have been no submissions of the '{{ title }}' form.{% endblocktrans %}</p>
{% endif %} {% endif %}
</div> </div>
{% endblock %} {% endblock %}

Wyświetl plik

@ -27,8 +27,8 @@
<div> <div>
<div class="nice-padding"> <div class="nice-padding">
<h2>{% blocktrans %}Choose a parent page{% endblocktrans %}</h2> <h2>{% blocktrans trimmed %}Choose a parent page{% endblocktrans %}</h2>
<p>{% blocktrans with view.verbose_name_plural|capfirst as plural %}{{ plural }} can be added to more than one place within your site. Which of the following would you like to be the parent of your new page?{% endblocktrans %}</p> <p>{% blocktrans trimmed with view.verbose_name_plural|capfirst as plural %}{{ plural }} can be added to more than one place within your site. Which of the following would you like to be the parent of your new page?{% endblocktrans %}</p>
<form action="" method="post" novalidate> <form action="" method="post" novalidate>
{% csrf_token %} {% csrf_token %}

Wyświetl plik

@ -12,8 +12,8 @@
{% block content_main %} {% block content_main %}
<div class="nice-padding"> <div class="nice-padding">
{% if protected_error %} {% if protected_error %}
<h2>{% blocktrans with view.verbose_name|capfirst as model_name %}{{ model_name }} could not be deleted{% endblocktrans %}</h2> <h2>{% blocktrans trimmed with view.verbose_name|capfirst as model_name %}{{ model_name }} could not be deleted{% endblocktrans %}</h2>
<p>{% blocktrans with instance as instance_name %}'{{ instance_name }}' is currently referenced by other objects, and cannot be deleted without jeopardising data integrity. To delete it successfully, first remove references from the following objects, then try again:{% endblocktrans %}</p> <p>{% blocktrans trimmed with instance as instance_name %}'{{ instance_name }}' is currently referenced by other objects, and cannot be deleted without jeopardising data integrity. To delete it successfully, first remove references from the following objects, then try again:{% endblocktrans %}</p>
<ul> <ul>
{% for obj in linked_objects %}<li><b>{{ obj|get_content_type_for_obj|title }}:</b> {{ obj }}</li>{% endfor %} {% for obj in linked_objects %}<li><b>{{ obj|get_content_type_for_obj|title }}:</b> {{ obj }}</li>{% endfor %}
</ul> </ul>

Wyświetl plik

@ -1,5 +1,5 @@
{% load i18n %} {% load i18n %}
{% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %} {% blocktrans trimmed with filter_title=title %} By {{ filter_title }} {% endblocktrans %}
<ul> <ul>
{% for choice in choices %} {% for choice in choices %}
<li{% if choice.selected %} class="selected"{% endif %}> <li{% if choice.selected %} class="selected"{% endif %}>

Wyświetl plik

@ -1,4 +1,4 @@
{% load i18n %} {% load i18n %}
{% block result_count %} {% block result_count %}
<span class="result-count">{% blocktrans %}{{ result_count }} out of {{ all_count }}{% endblocktrans %}</span> <span class="result-count">{% blocktrans trimmed %}{{ result_count }} out of {{ all_count }}{% endblocktrans %}</span>
{% endblock %} {% endblock %}

Wyświetl plik

@ -20,7 +20,7 @@
</table> </table>
{% else %} {% else %}
<div class="nice-padding no-search-results"> <div class="nice-padding no-search-results">
<p>{% blocktrans with view.verbose_name_plural as name %}Sorry, there are no {{ name }} matching your search parameters.{% endblocktrans %}</p> <p>{% blocktrans trimmed with view.verbose_name_plural as name %}Sorry, there are no {{ name }} matching your search parameters.{% endblocktrans %}</p>
</div> </div>
{% endif %} {% endif %}

Some files were not shown because too many files have changed in this diff Show More