mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 09:33:54 +01:00
Extract asterisk from translation string with format_lazy (page title)
- See #9348 - Relates to #9028
This commit is contained in:
parent
bd5bd6ce47
commit
acdf1aa4df
@ -92,7 +92,7 @@ Changelog
|
||||
* Fix: Resolve inconsistency in action button positions in InlinePanel (Thibaud Colas)
|
||||
* Fix: Use h3 elements with a counter in InlinePanel so screen reader users can navigate by heading (Thibaud Colas)
|
||||
* Fix: Ensure that buttons on custom chooser widgets are correctly shown on hover (Thibaud Colas)
|
||||
* Fix: Add missing asterisk to title field placeholder (Seremba Patrick)
|
||||
* Fix: Add missing asterisk to title field placeholder (Seremba Patrick, Stefan Hammer)
|
||||
* Fix: Avoid creating an extra rich text block when inserting a new block at the end of the content (Matt Westcott)
|
||||
* Fix: Removed the extra dot in the Wagtail version shown within the admin settings menu item (Loveth Omokaro)
|
||||
* Fix: Fully remove the obsolete `wagtailsearch_editorspick` table that prevents flushing the database (Matt Westcott)
|
||||
|
@ -126,7 +126,7 @@ There are multiple improvements to the documentation theme this release, here ar
|
||||
* Resolve inconsistency in action button positions in InlinePanel (Thibaud Colas)
|
||||
* Use h3 elements with a counter in InlinePanel so screen reader users can navigate by heading (Thibaud Colas)
|
||||
* Ensure that buttons on custom chooser widgets are correctly shown on hover (Thibaud Colas)
|
||||
* Add missing asterisk to title field placeholder (Seremba Patrick)
|
||||
* Add missing asterisk to title field placeholder (Seremba Patrick, Stefan Hammer)
|
||||
* Avoid creating an extra rich text block when inserting a new block at the end of the content (Matt Westcott)
|
||||
* Removed the extra dot in the Wagtail version shown within the admin settings menu item (Loveth Omokaro)
|
||||
* Fully remove the obsolete `wagtailsearch_editorspick` table that prevents flushing the database (Matt Westcott)
|
||||
|
@ -13,6 +13,7 @@ from django.forms.formsets import DELETION_FIELD_NAME, ORDERING_FIELD_NAME
|
||||
from django.forms.models import fields_for_model
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.text import format_lazy
|
||||
from django.utils.translation import gettext_lazy
|
||||
from modelcluster.models import get_serializable_data_for_fields
|
||||
|
||||
@ -1213,7 +1214,13 @@ def set_default_page_edit_handlers(cls):
|
||||
FieldPanel(
|
||||
"title",
|
||||
classname="title",
|
||||
widget=forms.TextInput(attrs={"placeholder": gettext_lazy("Page title*")}),
|
||||
widget=forms.TextInput(
|
||||
attrs={
|
||||
"placeholder": format_lazy(
|
||||
"{title}*", title=gettext_lazy("Page title")
|
||||
)
|
||||
}
|
||||
),
|
||||
),
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user