Skip to content

Commit

Permalink
Fix translation regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benaka Moorthi committed Sep 14, 2013
1 parent b1205a5 commit 62f5478
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions plugins/Widgetize/Widgetize.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

Expand Down Expand Up @@ -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';
}
}

0 comments on commit 62f5478

Please sign in to comment.