diff options
author | Tassoman <tassoman@gmail.com> | 2015-11-30 13:47:38 +0300 |
---|---|---|
committer | Tassoman <tassoman@gmail.com> | 2015-11-30 13:47:38 +0300 |
commit | 05bbd63eb26a9e7c417a7407a227258406b43aeb (patch) | |
tree | 466656a3009f6496c7b736e2ac9537c44a9327a8 /plugins/CoreHome/Menu.php | |
parent | 63f34d14793881e667344960571e76aa3bf6f509 (diff) |
Improving SR readabilty of users' menuitem in topBar
Diffstat (limited to 'plugins/CoreHome/Menu.php')
-rw-r--r-- | plugins/CoreHome/Menu.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/CoreHome/Menu.php b/plugins/CoreHome/Menu.php index 20d9ac8eb8..c9331e4470 100644 --- a/plugins/CoreHome/Menu.php +++ b/plugins/CoreHome/Menu.php @@ -35,12 +35,13 @@ class Menu extends \Piwik\Plugin\Menu if (Piwik::isUserIsAnonymous()) { if (Plugin\Manager::getInstance()->isPluginActivated('ScheduledReports')) { - $menu->addItem($login, null, array('module' => 'ScheduledReports', 'action' => 'index'), 970, $login); + $menu->addItem($login, null, array('module' => 'ScheduledReports', 'action' => 'index'), 970, Piwik::translate('ScheduledReports_PersonalEmailReports')); } else { - $menu->addItem($login, null, array('module' => 'API', 'action' => 'listAllAPI'), 970, $login); + $menu->addItem($login, null, array('module' => 'API', 'action' => 'listAllAPI'), 970, Piwik::translate('API_ReportingApiReference')); } } else { - $menu->addItem($login, null, array('module' => 'UsersManager', 'action' => 'userSettings'), 970, $login); + $tooltip = sprintf('%s: %s', Piwik::translate('UsersManager_PersonalSettings'), $login); + $menu->addItem($login, null, array('module' => 'UsersManager', 'action' => 'userSettings'), 970, $tooltip); } $module = $this->getLoginModule(); |