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:
authorBeezyT <timo@ezdesign.de>2012-01-27 16:46:21 +0400
committerBeezyT <timo@ezdesign.de>2012-01-27 16:46:21 +0400
commitb80a541506715982b8f36b7e5328571aab071d5d (patch)
treead5f9132b764eef5dec4ceee5a24a6574765a858 /plugins/UserCountry
parentc774712b482d48fb0267bbe0fb7a77747c89a614 (diff)
refs #534, #2742 metadata api extensions: more/better translations, actionToLoadSubTables
git-svn-id: http://dev.piwik.org/svn/trunk@5722 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r--plugins/UserCountry/UserCountry.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/UserCountry/UserCountry.php b/plugins/UserCountry/UserCountry.php
index e24ad95b8c..03f5c10cd7 100644
--- a/plugins/UserCountry/UserCountry.php
+++ b/plugins/UserCountry/UserCountry.php
@@ -4,7 +4,7 @@
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- * @version $Id$
+ * @version $Id: UserCountry.php 5138 2011-09-07 15:25:57Z EZdesign $
*
* @category Piwik_Plugins
* @package Piwik_UserCountry
@@ -76,14 +76,22 @@ class Piwik_UserCountry extends Piwik_Plugin
public function getReportMetadata($notification)
{
+ $metrics = array(
+ 'nb_visits' => Piwik_Translate('General_ColumnNbVisits'),
+ 'nb_uniq_visitors' => Piwik_Translate('General_ColumnNbUniqVisitors'),
+ 'nb_actions' => Piwik_Translate('General_ColumnNbActions')
+ );
+
$reports = &$notification->getNotificationObject();
+
$reports[] = array(
'category' => Piwik_Translate('General_Visitors'),
'name' => Piwik_Translate('UserCountry_Country'),
'module' => 'UserCountry',
'action' => 'getCountry',
'dimension' => Piwik_Translate('UserCountry_Country'),
- 'order' => 5,
+ 'metrics' => $metrics,
+ 'order' => 5
);
$reports[] = array(
@@ -92,7 +100,8 @@ class Piwik_UserCountry extends Piwik_Plugin
'module' => 'UserCountry',
'action' => 'getContinent',
'dimension' => Piwik_Translate('UserCountry_Continent'),
- 'order' => 6,
+ 'metrics' => $metrics,
+ 'order' => 6
);
}