diff options
Diffstat (limited to 'plugins/CoreVisualizations/CoreVisualizations.php')
-rw-r--r-- | plugins/CoreVisualizations/CoreVisualizations.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/plugins/CoreVisualizations/CoreVisualizations.php b/plugins/CoreVisualizations/CoreVisualizations.php index 535f3b284e..206eaa9e47 100644 --- a/plugins/CoreVisualizations/CoreVisualizations.php +++ b/plugins/CoreVisualizations/CoreVisualizations.php @@ -28,9 +28,10 @@ class CoreVisualizations extends \Piwik\Plugin public function getListHooksRegistered() { return array( - 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', - 'AssetManager.getJsFiles' => 'getJsFiles', - 'DataTableVisualization.getAvailable' => 'getAvailableDataTableVisualizations', + 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', + 'AssetManager.getJsFiles' => 'getJsFiles', + 'DataTableVisualization.getAvailable' => 'getAvailableDataTableVisualizations', + 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys' ); } @@ -59,4 +60,14 @@ class CoreVisualizations extends \Piwik\Plugin $jsFiles[] = "plugins/CoreVisualizations/javascripts/jqplotPieGraph.js"; $jsFiles[] = "plugins/CoreVisualizations/javascripts/jqplotEvolutionGraph.js"; } + + public function getClientSideTranslationKeys(&$translationKeys) + { + $translationKeys[] = 'General_MetricsToPlot'; + $translationKeys[] = 'General_MetricToPlot'; + $translationKeys[] = 'General_RecordsToPlot'; + $translationKeys[] = 'General_SaveImageOnYourComputer'; + $translationKeys[] = 'General_ExportAsImage'; + $translationKeys[] = 'General_NoDataForGraph'; + } }
\ No newline at end of file |