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:
authorThomas Steur <thomas.steur@googlemail.com>2014-06-13 00:35:10 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-13 00:35:10 +0400
commita499759329e1a1b70096c0e4bcf01edac19e0c4a (patch)
tree8625858180b5ad0ba0821569c7d22d87441658e1 /plugins/VisitsSummary
parente9c0a7a107d4fa6f8cff06edc677fb710269d3e5 (diff)
fix visits summary has some custom metric translations
Diffstat (limited to 'plugins/VisitsSummary')
-rw-r--r--plugins/VisitsSummary/Reports/Get.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/VisitsSummary/Reports/Get.php b/plugins/VisitsSummary/Reports/Get.php
index 0023072bf3..b3dfe1ff1a 100644
--- a/plugins/VisitsSummary/Reports/Get.php
+++ b/plugins/VisitsSummary/Reports/Get.php
@@ -33,4 +33,14 @@ class Get extends \Piwik\Plugin\Report
// 'nb_visits_converted',
$this->order = 1;
}
+
+ protected function getMetrics()
+ {
+ $metrics = parent::getMetrics();
+
+ $metrics['avg_time_on_site'] = Piwik::translate('General_VisitDuration');
+ $metrics['max_actions'] = Piwik::translate('General_ColumnMaxActions');
+
+ return $metrics;
+ }
}