Add some missing translated labels to the bulk actions

pull/8598/head
Stefan Hammer 2022-08-23 13:24:33 +02:00 zatwierdzone przez LB (Ben Johnston)
rodzic e5efa69aa2
commit 36e4e9b93d
6 zmienionych plików z 9 dodań i 5 usunięć
docs/releases
wagtail
documents/views/bulk_actions
images/views/bulk_actions

Wyświetl plik

@ -120,8 +120,9 @@ Changelog
* Simplify page chooser views by converting to class-based views (Matt Westcott)
* Add reference documentation and snippets usage guide for `RevisionMixin`, `DraftStateMixin`, and `PreviewableMixin` (Sage Abdullah)
* Add "Translate" button within pages Actions dropdown when editing pages (Sage Abdullah)
* Add translated labels to the bulk actions tags and collections bulk update fields (Stefan Hammer)
* Fix: Typo in `ResumeWorkflowActionFormatter` message (Stefan Hammer)
* Fix issue where `ModelAdmin` index listings with export list enabled would show buttons with an incorrect layout (Josh Woodcock)
* Fix: Issue where `ModelAdmin` index listings with export list enabled would show buttons with an incorrect layout (Josh Woodcock)
* Fix: Throw a meaningful error when saving an image to an unrecognised image format (Christian Franke)
* Fix: Remove extra padding for headers with breadcrumbs on mobile viewport (Steven Steinwand)
* Fix: Ensure that custom document or image models support custom tag models (Matt Westcott)

Wyświetl plik

@ -183,6 +183,7 @@ There are also many improvements to the documentation both under the hood and in
* Simplify page chooser views by converting to class-based views (Matt Westcott)
* Add reference documentation and snippets usage guide for `RevisionMixin`, `DraftStateMixin`, and `PreviewableMixin` (Sage Abdullah)
* Add "Translate" button within pages Actions dropdown when editing pages (Sage Abdullah)
* Add translated labels to the bulk actions tags and collections bulk update fields (Stefan Hammer)
### Bug fixes

Wyświetl plik

@ -7,7 +7,7 @@ from wagtail.documents.views.bulk_actions.document_bulk_action import DocumentBu
class TagForm(forms.Form):
tags = forms.Field(widget=widgets.AdminTagWidget)
tags = forms.Field(label=_("Tags"), widget=widgets.AdminTagWidget)
class AddTagsBulkAction(DocumentBulkAction):

Wyświetl plik

@ -10,9 +10,10 @@ class CollectionForm(forms.Form):
user = kwargs.pop("user", None)
super().__init__(*args, **kwargs)
self.fields["collection"] = forms.ModelChoiceField(
label=_("Collection"),
queryset=DocumentBulkAction.permission_policy.collections_user_has_permission_for(
user, "add"
)
),
)

Wyświetl plik

@ -7,7 +7,7 @@ from wagtail.images.views.bulk_actions.image_bulk_action import ImageBulkAction
class TagForm(forms.Form):
tags = forms.Field(widget=widgets.AdminTagWidget)
tags = forms.Field(label=_("Tags"), widget=widgets.AdminTagWidget)
class AddTagsBulkAction(ImageBulkAction):

Wyświetl plik

@ -10,9 +10,10 @@ class CollectionForm(forms.Form):
user = kwargs.pop("user", None)
super().__init__(*args, **kwargs)
self.fields["collection"] = forms.ModelChoiceField(
label=_("Collection"),
queryset=ImageBulkAction.permission_policy.collections_user_has_permission_for(
user, "add"
)
),
)