diff --git a/plugins/Widgetize/Widgetize.php b/plugins/Widgetize/Widgetize.php index 47c50e00a27..e934abc3bb6 100644 --- a/plugins/Widgetize/Widgetize.php +++ b/plugins/Widgetize/Widgetize.php @@ -24,9 +24,10 @@ class Widgetize extends \Piwik\Plugin public function getListHooksRegistered() { return array( - 'AssetManager.getJsFiles' => 'getJsFiles', - 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', - 'TopMenu.add' => 'addTopMenu', + 'AssetManager.getJsFiles' => 'getJsFiles', + 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', + 'TopMenu.add' => 'addTopMenu', + 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys' ); } @@ -56,4 +57,10 @@ public function getStylesheetFiles(&$stylesheets) $stylesheets[] = "plugins/CoreHome/stylesheets/cloud.less"; $stylesheets[] = "plugins/Dashboard/stylesheets/dashboard.less"; } + + public function getClientSideTranslationKeys(&$translations) + { + $translations[] = 'Widgetize_OpenInNewWindow'; + $translations[] = 'Dashboard_LoadingWidget'; + } }