diff --git a/library/Notifications/Widget/ItemList/IncidentListItem.php b/library/Notifications/Widget/ItemList/IncidentListItem.php index cacd0c6cd..98eddb836 100644 --- a/library/Notifications/Widget/ItemList/IncidentListItem.php +++ b/library/Notifications/Widget/ItemList/IncidentListItem.php @@ -14,6 +14,7 @@ use ipl\Html\BaseHtmlElement; use ipl\Html\Html; use ipl\Html\HtmlElement; +use ipl\I18n\Translation; use ipl\Web\Common\BaseListItem; use ipl\Web\Widget\Icon; use ipl\Web\Widget\Link; @@ -25,6 +26,8 @@ */ class IncidentListItem extends BaseListItem { + use Translation; + /** @var Incident The associated list item */ protected $item; @@ -85,7 +88,7 @@ protected function assembleHeader(BaseHtmlElement $header): void if ($this->item->recovered_at !== null) { $meta->add([ - 'closed ', + $this->translate('closed') . ' ', new TimeAgo($this->item->recovered_at->getTimestamp()) ]); } else {