Translate "Assets (active)" and "Logs" in dashboard metrics block.

This commit is contained in:
Michael Stenta 2022-01-06 11:14:46 -05:00
parent b0debe0289
commit 02e6913cfe
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class FarmMetricsBlock extends BlockBase implements ContainerFactoryPluginInterf
// Create a container for asset metrics.
$output['asset'] = [
'#markup' => '<strong>' . Link::createFromRoute('Assets', 'view.farm_asset.page')->toString() . ' (active)</strong>',
'#markup' => '<strong>' . Link::createFromRoute($this->t('Assets'), 'view.farm_asset.page')->toString() . ' (' . $this->t('active') . ')</strong>',
'metrics' => [
'#type' => 'container',
'#attributes' => [
@ -96,7 +96,7 @@ class FarmMetricsBlock extends BlockBase implements ContainerFactoryPluginInterf
// Create a section for log metrics.
$output['log'] = [
'#markup' => '<strong>' . Link::createFromRoute('Logs', 'view.farm_log.page')->toString() . '</strong>',
'#markup' => '<strong>' . Link::createFromRoute($this->t('Logs'), 'view.farm_log.page')->toString() . '</strong>',
'metrics' => [
'#type' => 'container',
'#attributes' => [