SearchDashboard: Use t() instead of the view helper

Since it's library code we do not need to use the module-aware
translation helper.
This commit is contained in:
Johannes Meyer 2015-08-25 16:51:50 +02:00
parent 6ab61ba8e0
commit 8cc1970a9f
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class SearchDashboard extends Dashboard
$pane->createDashlet(
$searchUrl->title . ': ' . $searchString,
Url::fromPath($searchUrl->url, array('q' => $searchString))
)->setProgressLabel($this->view()->translate('Searching'));
)->setProgressLabel(t('Searching'));
}
return $this;