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
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-03 11:41:50 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-03 11:41:50 +0400
commit9b1d0b1c50455fc6b7928718d71c052957a00598 (patch)
treef6a16b9bc4496b0074b6159f490a229f3538c70d /core
parente7d78e10dfa379844f4364d9aed78ae13b6de9f8 (diff)
refs #4996 make sure processed metrics will be translated automatically and a user does not have to add them manually to the viewDataTable
Diffstat (limited to 'core')
-rw-r--r--core/Plugin/ViewDataTable.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Plugin/ViewDataTable.php b/core/Plugin/ViewDataTable.php
index 14b2f979f7..d7f72028cf 100644
--- a/core/Plugin/ViewDataTable.php
+++ b/core/Plugin/ViewDataTable.php
@@ -223,6 +223,11 @@ abstract class ViewDataTable implements ViewInterface
$this->config->addTranslations($metrics);
}
+ $processedMetrics = $report->getProcessedMetrics();
+ if (!empty($processedMetrics)) {
+ $this->config->addTranslations($processedMetrics);
+ }
+
$report->configureView($this);
}