diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-12-21 00:42:45 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-12-21 00:42:45 +0300 |
commit | e567c3605c9852143401f32c01b033478cc8b0e0 (patch) | |
tree | e023cc7c6b55e89ac7151878ea49b97c82332761 | |
parent | 572b74b5bbff20a97c2732b0c4a86cd2d0835cbf (diff) |
Add tooltip to goal overview link. (#15297)
-rw-r--r-- | plugins/Goals/Goals.php | 1 | ||||
-rw-r--r-- | plugins/Goals/angularjs/common/directives/goal-page-link.js | 1 | ||||
-rw-r--r-- | plugins/Goals/lang/en.json | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Goals/Goals.php b/plugins/Goals/Goals.php index 8ad81a1144..dca07c6de6 100644 --- a/plugins/Goals/Goals.php +++ b/plugins/Goals/Goals.php @@ -369,5 +369,6 @@ class Goals extends \Piwik\Plugin $translationKeys[] = 'Goals_Optional'; $translationKeys[] = 'Goals_TimeInMinutes'; $translationKeys[] = 'Goals_Pattern'; + $translationKeys[] = 'Goals_ClickToViewThisGoal'; } } diff --git a/plugins/Goals/angularjs/common/directives/goal-page-link.js b/plugins/Goals/angularjs/common/directives/goal-page-link.js index 590359e033..4fa82186a8 100644 --- a/plugins/Goals/angularjs/common/directives/goal-page-link.js +++ b/plugins/Goals/angularjs/common/directives/goal-page-link.js @@ -27,6 +27,7 @@ var link = element.find('a'); link.text(title); link.attr('href', 'javascript:void(0)'); + link.attr('title', _pk_translate('Goals_ClickToViewThisGoal')); link.bind('click', function () { var $search = $location.search(); $search.category = 'Goals_Goals'; diff --git a/plugins/Goals/lang/en.json b/plugins/Goals/lang/en.json index b7414ec1b0..f3d9e34b42 100644 --- a/plugins/Goals/lang/en.json +++ b/plugins/Goals/lang/en.json @@ -120,6 +120,7 @@ "EventValueAsRevenueHelp": "If the event you are matching has a revenue, and that revenue is tracked as the event value, you can enable this option to record the event value as the goal conversion's revenue. If your goal revenue will not vary per conversion, you can ignore this option and just set a default revenue above.", "EventValueAsRevenueHelp2": "Note: If both a default goal revenue and event value are defined, the event value will be used. If this option is enabled and no event value is sent in a request, the default revenue will be used (if defined).", "AtLeastMinutes": "at least %1$s minutes. Use decimals to match seconds, for example, %2$s to match 30 seconds.", - "TimeInMinutes": "Time in Minutes" + "TimeInMinutes": "Time in Minutes", + "ClickToViewThisGoal": "Click to view this goal." } } |