Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Contents/Contents.php')
-rw-r--r--plugins/Contents/Contents.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/Contents/Contents.php b/plugins/Contents/Contents.php
new file mode 100644
index 0000000000..0fd5993742
--- /dev/null
+++ b/plugins/Contents/Contents.php
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Piwik - free/libre analytics platform
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ */
+namespace Piwik\Plugins\Contents;
+
+class Contents extends \Piwik\Plugin
+{
+ /**
+ * @see Piwik\Plugin::getListHooksRegistered
+ */
+ public function getListHooksRegistered()
+ {
+ return array(
+ 'Metrics.getDefaultMetricTranslations' => 'addMetricTranslations'
+ );
+ }
+
+ public function addMetricTranslations(&$translations)
+ {
+ $translations['nb_impressions'] = 'Contents_Impressions';
+ $translations['nb_interactions'] = 'Contents_Interactions';
+ $translations['interaction_rate'] = 'Contents_InteractionRate';
+ }
+
+}