Clarify schedule publishing dialog message text

The old text is confusing, as it might be interpreted as
'the publishing schedule only takes effect after the publishing has happened',
which doesn't make sense.
pull/10596/head
Sage Abdullah 2023-06-23 15:03:46 +01:00
rodzic 5f85a39642
commit d204acbaaa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: EB1A33CC51CC0217
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -6,7 +6,7 @@
{% if page %}
{% page_permissions instance as page_perms %}
{% if page_perms.can_publish %}
{% trans "This publishing schedule will only take effect after you have published" as message_heading %}
{% trans 'This publishing schedule will only take effect after you select the "Publish" option' as message_heading %}
{% else %}
{% trans "Anyone with editing permissions can create schedules" as message_heading %}
{% trans "But only those with publishing permissions can make them effective." as message_description %}

Wyświetl plik

@ -447,7 +447,7 @@ class TestPageEdit(WagtailTestUtils, TestCase):
self.assertContains(
response,
"This publishing schedule will only take effect after you have published",
'This publishing schedule will only take effect after you select the "Publish" option',
)
def test_edit_post_scheduled_custom_timezone(self):
@ -541,7 +541,7 @@ class TestPageEdit(WagtailTestUtils, TestCase):
self.assertContains(
response,
"This publishing schedule will only take effect after you have published",
'This publishing schedule will only take effect after you select the "Publish" option',
)
def test_schedule_panel_without_publish_permission(self):