Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/deletionblockers/ReferenceDeletionBlocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use craft\db\Query;
use craft\elements\deletionblockers\BaseDeletionBlocker;
use craft\helpers\Html;
use craft\helpers\StringHelper;

/**
* @since 5.6.0
Expand Down Expand Up @@ -48,12 +49,12 @@ public function getSummary(): string
/** @var class-string<ElementInterface> $targetElementType */
$targetElementType = $this->elements->first()::class;

return Craft::t('ckeditor', 'The {numTargets, plural, =1{{targetTypeSingular} is} other{{targetTypePlural} are}} referenced by CKEditor fields in {numReferences, number} other {numReferences, plural, =1{element} other{elements}}.', [
return StringHelper::upperCaseFirst(Craft::t('ckeditor', 'The {numTargets, plural, =1{{targetTypeSingular} is} other{{targetTypePlural} are}} referenced by CKEditor fields in {numReferences, number} other {numReferences, plural, =1{element} other{elements}}.', [
'targetTypeSingular' => $targetElementType::lowerDisplayName(),
'targetTypePlural' => $targetElementType::pluralLowerDisplayName(),
'numReferences' => $this->referenceCount,
'numTargets' => $this->elements->count(),
]);
]));
}

public function getActions(): array
Expand Down