mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MNT resolve translation lint failures (#776)
This commit is contained in:
parent
d77d90bf13
commit
6e3cf9d2e3
@ -41,7 +41,7 @@ trait BlogObject
|
||||
'Root',
|
||||
Tab::create(
|
||||
'Main',
|
||||
TextField::create('Title', _t(__CLASS__ . '.Title', 'Title'))
|
||||
TextField::create('Title', $this->fieldLabel('Title'))
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user