Fix missing translations in workflow templates

- fixes #8214
- see #8240 & #8238
pull/8174/head
anujaraj 2022-03-29 21:40:20 +05:30 zatwierdzone przez LB Johnston
rodzic a8b16b3a14
commit f3720a7652
6 zmienionych plików z 9 dodań i 6 usunięć

Wyświetl plik

@ -128,6 +128,7 @@ Changelog
* Fix: Prevent opening choosers multiple times for Image, Page, Document, Snippet (LB (Ben Johnston))
* Fix: Ensure subsequent changes to styles files are picked up by Gulp watch (Jason Attwood)
* Fix: Ensure that programmatic page moves are correctly logged as 'move' and not 'reorder' in some cases (Andy Babic)
* Fix: Add missing translation usage in Workflow templates (Anuja Verma, Saurabh Kumar)
2.15.4 (11.02.2022)

Wyświetl plik

@ -577,8 +577,9 @@ Contributors
* Stephanie Cheng Smith
* Luis Espinoza
* Hitansh Shah
* Saurabh kumar
* Saurabh Kumar
* James Ray
* Anuja Verma
Translators
===========

Wyświetl plik

@ -86,6 +86,7 @@ class LandingPage(Page):
* Allow bulk publishing of pages without revisions (Andy Chosak)
* Stop skipping heading levels in Wagtail welcome page (Jesse Menn)
* Add missing `lang` attributes to `<html>` elements (James Ray)
* Add missing translation usage in Workflow templates (Anuja Verma, Saurabh Kumar)
## Upgrade considerations

Wyświetl plik

@ -6,12 +6,12 @@
{% include "wagtailadmin/shared/header.html" with title=view.page_title subtitle=view.get_page_subtitle icon=view.header_icon %}
<div class="nice-padding">
<p>This workflow is currently in progress on {{ workflow_states_in_progress }} pages. Deleting this workflow will cancel moderation on these page.
Are you sure you want to delete this workflow?</p>
<p>{% blocktrans trimmed %}This workflow is currently in progress on {{ workflow_states_in_progress }} pages. Deleting this workflow will cancel moderation on these page.
Are you sure you want to delete this workflow?{% endblocktrans %}</p>
<form action="{{ view.get_delete_url }}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, delete' %}" class="button serious" />
<a class="button button-secondary" href="{{ view.get_edit_url }}">No</a>
<a class="button button-secondary" href="{{ view.get_edit_url }}">{% trans 'No' %}</a>
</form>
</div>
{% endblock %}

Wyświetl plik

@ -13,7 +13,7 @@
<form action="{{ view.get_delete_url }}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, disable' %}" class="button serious" />
<a class="button button-secondary" href="{{ view.get_edit_url }}">No</a>
<a class="button button-secondary" href="{{ view.get_edit_url }}">{% trans 'No' %}</a>
</form>
</div>
{% endblock %}

Wyświetl plik

@ -13,7 +13,7 @@
<form action="{{ view.get_delete_url }}" method="POST">
{% csrf_token %}
<input type="submit" value="{% trans 'Yes, disable' %}" class="button serious" />
<a class="button button-secondary" href="{{ view.get_edit_url }}">No</a>
<a class="button button-secondary" href="{{ view.get_edit_url }}">{% trans 'No' %}</a>
</form>
</div>
{% endblock %}