Skip to content

Commit 8b8a9b8

Browse files
authored
Merge pull request #17691 from craftcms/lupe/pt-1866-error-notification-icon-is-not-translated-and-not-wrapped-in
Use translation for alert icon alt
2 parents e80ca1b + cce7235 commit 8b8a9b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/ElementsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ private function _errorSummary(ElementInterface $element): string
12421242
Html::tag('span', '', [
12431243
'class' => 'notification-icon',
12441244
'data-icon' => 'alert',
1245-
'aria-label' => 'error',
1245+
'aria-label' => Craft::t('app', 'Error'),
12461246
'role' => 'img',
12471247
]) .
12481248
Html::tag('h2', $heading) .

0 commit comments

Comments
 (0)