Skip to content

Commit

Permalink
MNT resolve translation lint failures (#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 13, 2024
1 parent d77d90b commit 6e3cf9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/BlogObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getCMSFields()
'Root',
Tab::create(
'Main',
TextField::create('Title', _t(__CLASS__ . '.Title', 'Title'))
TextField::create('Title', $this->fieldLabel('Title'))
)
);

Expand Down
1 change: 1 addition & 0 deletions src/Widgets/BlogArchiveWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function getCMSFields()
$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);
}

Expand Down

0 comments on commit 6e3cf9d

Please sign in to comment.