kopia lustrzana https://github.com/wagtail/wagtail
Extract asterisk from translation string with format_lazy (page title)
- See #9348 - Relates to #9028pull/9462/head^2
rodzic
bd5bd6ce47
commit
acdf1aa4df
|
@ -92,7 +92,7 @@ Changelog
|
||||||
* Fix: Resolve inconsistency in action button positions in InlinePanel (Thibaud Colas)
|
* 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: 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: 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: 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: 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)
|
* 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)
|
* 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)
|
* 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)
|
* 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)
|
* 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)
|
* 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)
|
* 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.forms.models import fields_for_model
|
||||||
from django.utils.functional import cached_property
|
from django.utils.functional import cached_property
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
|
from django.utils.text import format_lazy
|
||||||
from django.utils.translation import gettext_lazy
|
from django.utils.translation import gettext_lazy
|
||||||
from modelcluster.models import get_serializable_data_for_fields
|
from modelcluster.models import get_serializable_data_for_fields
|
||||||
|
|
||||||
|
@ -1213,7 +1214,13 @@ def set_default_page_edit_handlers(cls):
|
||||||
FieldPanel(
|
FieldPanel(
|
||||||
"title",
|
"title",
|
||||||
classname="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")
|
||||||
|
)
|
||||||
|
}
|
||||||
|
),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue