diff options
author | Matthieu Aubry <matt@piwik.org> | 2015-11-25 04:48:20 +0300 |
---|---|---|
committer | Matthieu Aubry <matt@piwik.org> | 2015-11-25 04:48:20 +0300 |
commit | 01137cbe80eab5c6f66cab87b053115a7454d936 (patch) | |
tree | 611cc560b99a84e868382185a674b5232e75d0e4 /plugins/SegmentEditor/SegmentEditor.php | |
parent | ecb4029437c42ebc7273af284b319265abdb5174 (diff) | |
parent | 1a4db22746d6031a54dde64e416cb2a186ba5fd8 (diff) |
Merge pull request #9217 from piwik/9129_2
Added feature Custom Dimensions
Diffstat (limited to 'plugins/SegmentEditor/SegmentEditor.php')
-rw-r--r-- | plugins/SegmentEditor/SegmentEditor.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/SegmentEditor/SegmentEditor.php b/plugins/SegmentEditor/SegmentEditor.php index 9107935e73..a46be068bc 100644 --- a/plugins/SegmentEditor/SegmentEditor.php +++ b/plugins/SegmentEditor/SegmentEditor.php @@ -28,6 +28,7 @@ class SegmentEditor extends \Piwik\Plugin 'AssetManager.getJavaScriptFiles' => 'getJsFiles', 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', 'Template.nextToCalendar' => 'getSegmentEditorHtml', + 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys', ); } @@ -85,4 +86,9 @@ class SegmentEditor extends \Piwik\Plugin { return Config::getInstance()->General['allow_adding_segments_for_all_websites'] == 1; } + + public function getClientSideTranslationKeys(&$translationKeys) + { + $translationKeys[] = 'SegmentEditor_CustomSegment'; + } } |