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-12 08:41:39 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-12 08:41:39 +0400
commit89ed726287cd16cf2712bd44073e9c16022c0062 (patch)
treef980fd0f59c6a0cda1e5d9915072a7f88675bba9 /plugins/Actions/Reports
parent83d0378998ad19fbc45f12b787c78de94866dc00 (diff)
as the category is used for reportMetadata and widgetsList we should not translate the category. The reportMetadata wants it translated but widgetslist wants the translation key. So we translate it only for the reportMetadata. Best solution would be to always accept either translated or the key but one problem after another
Diffstat (limited to 'plugins/Actions/Reports')
-rw-r--r--plugins/Actions/Reports/Base.php2
-rw-r--r--plugins/Actions/Reports/SiteSearchBase.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Actions/Reports/Base.php b/plugins/Actions/Reports/Base.php
index c6ccb19828..c931663c3a 100644
--- a/plugins/Actions/Reports/Base.php
+++ b/plugins/Actions/Reports/Base.php
@@ -20,7 +20,7 @@ abstract class Base extends \Piwik\Plugin\Report
{
protected function init()
{
- $this->category = Piwik::translate('General_Actions');
+ $this->category = 'General_Actions';
$this->processedMetrics = false;
}
diff --git a/plugins/Actions/Reports/SiteSearchBase.php b/plugins/Actions/Reports/SiteSearchBase.php
index 74140648a0..dce52b84c6 100644
--- a/plugins/Actions/Reports/SiteSearchBase.php
+++ b/plugins/Actions/Reports/SiteSearchBase.php
@@ -17,7 +17,7 @@ abstract class SiteSearchBase extends Base
protected function init()
{
parent::init();
- $this->category = Piwik::translate('Actions_SubmenuSitesearch');
+ $this->category = 'Actions_SubmenuSitesearch';
}
public function isEnabled()