Merge branch '4.2' into 4

This commit is contained in:
github-actions 2024-08-14 23:47:32 +00:00
commit bb49ba8cbf
2 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ trait BlogObject
'Root',
Tab::create(
'Main',
TextField::create('Title', _t(__CLASS__ . '.Title', 'Title'))
TextField::create('Title', $this->fieldLabel('Title'))
)
);

View File

@ -85,6 +85,7 @@ class BlogArchiveWidget extends Widget
$type = $archiveType->enumValues();
foreach ($type as $k => $v) {
/** @phpstan-ignore translation.key (we need the key to be dynamic here) */
$type[$k] = _t(__CLASS__ .'.' . ucfirst(strtolower($v ?? '')), $v);
}