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/UserCountry/UserCountry.php')
-rw-r--r--plugins/UserCountry/UserCountry.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/UserCountry/UserCountry.php b/plugins/UserCountry/UserCountry.php
index 4fea13b899..a91b2e95d8 100644
--- a/plugins/UserCountry/UserCountry.php
+++ b/plugins/UserCountry/UserCountry.php
@@ -24,6 +24,7 @@ class UserCountry extends \Piwik\Plugin
public function registerEvents()
{
return array(
+ 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys',
'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
'AssetManager.getJavaScriptFiles' => 'getJsFiles',
'Tracker.setTrackerCacheGeneral' => 'setTrackerCacheGeneral',
@@ -31,6 +32,19 @@ class UserCountry extends \Piwik\Plugin
);
}
+ public function getClientSideTranslationKeys(&$translations)
+ {
+ $translations[] = 'General_InfoFor';
+ $translations[] = 'General_NotInstalled';
+ $translations[] = 'General_Installed';
+ $translations[] = 'General_Broken';
+ $translations[] = 'UserCountry_CurrentLocationIntro';
+ $translations[] = 'General_Refresh';
+ $translations[] = 'UserCountry_CannotLocalizeLocalIP';
+ $translations[] = 'UserCountry_NoProviders';
+ $translations[] = 'General_Disabled';
+ }
+
public function addReportToInsightsOverview(&$reports)
{
$reports['UserCountry_getCountry'] = array();
@@ -48,8 +62,6 @@ class UserCountry extends \Piwik\Plugin
public function getJsFiles(&$jsFiles)
{
- $jsFiles[] = "plugins/UserCountry/angularjs/location-provider-selection/location-provider-selection.controller.js";
- $jsFiles[] = "plugins/UserCountry/angularjs/location-provider-selection/location-provider-selection.directive.js";
}
/**