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/Intl/Intl.php')
-rw-r--r--plugins/Intl/Intl.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Intl/Intl.php b/plugins/Intl/Intl.php
index b8e0030240..8f44e8d06a 100644
--- a/plugins/Intl/Intl.php
+++ b/plugins/Intl/Intl.php
@@ -10,5 +10,19 @@ namespace Piwik\Plugins\Intl;
class Intl extends \Piwik\Plugin
{
+ public function getListHooksRegistered()
+ {
+ return [
+ 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys',
+ ];
+ }
+ public function getClientSideTranslationKeys(&$translationKeys)
+ {
+ $translationKeys[] = 'Intl_PeriodDay';
+ $translationKeys[] = 'Intl_PeriodMonth';
+ $translationKeys[] = 'Intl_PeriodWeek';
+ $translationKeys[] = 'Intl_PeriodYear';
+ $translationKeys[] = 'CoreHome_PeriodRange';
+ }
}