added translation domain for dashboard widgets (#3909)

This commit is contained in:
Kevin Papst
2023-03-08 19:01:49 +01:00
committed by GitHub
parent 9d503300f6
commit aebd57e311
8 changed files with 53 additions and 439 deletions

View File

@@ -67,7 +67,7 @@ final class DashboardSubscriber extends AbstractActionsSubscriber
continue;
}
$event->addActionToSubmenu('widget_add', $widget->getId(), ['url' => $this->path('dashboard_add', ['widget' => $widget->getId()]), 'title' => $widget->getTitle()]);
$event->addActionToSubmenu('widget_add', $widget->getId(), ['url' => $this->path('dashboard_add', ['widget' => $widget->getId()]), 'title' => $widget->getTitle(), 'translation_domain' => $widget->getTranslationDomain()]);
}
$event->addAction('reset', ['title' => 'action.reset', 'url' => $this->path('dashboard_reset'), 'icon' => 'delete', 'class' => 'confirmation-link', 'attr' => ['data-question' => 'confirm.delete']]);