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:
authorChristian Schmidt <github@chsc.dk>2018-06-11 01:42:45 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-06-11 01:42:45 +0300
commit6666479c84793895d444f8209cc60137bd121604 (patch)
treee2d797c4fd030840f23d80ea37789b4f56761163 /plugins/ExamplePlugin
parent592b13fd29ad9b7a53db032e53b09fcfb0691043 (diff)
Make some menus translatable (#12885)
* Make some menus translatable * Update changelog
Diffstat (limited to 'plugins/ExamplePlugin')
-rw-r--r--plugins/ExamplePlugin/Menu.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ExamplePlugin/Menu.php b/plugins/ExamplePlugin/Menu.php
index 38ac0d4af8..5f1bf12107 100644
--- a/plugins/ExamplePlugin/Menu.php
+++ b/plugins/ExamplePlugin/Menu.php
@@ -21,16 +21,16 @@ class Menu extends \Piwik\Plugin\Menu
public function configureTopMenu(MenuTop $menu)
{
- // $menu->addItem('My Top Item', null, $this->urlForDefaultAction(), $orderId = 30);
+ // $menu->addItem('ExamplePlugin_MyTopItem', null, $this->urlForDefaultAction(), $orderId = 30);
}
public function configureAdminMenu(MenuAdmin $menu)
{
// reuse an existing category. Execute the showList() method within the controller when menu item was clicked
- // $menu->addManageItem('My User Item', $this->urlForAction('showList'), $orderId = 30);
- // $menu->addPlatformItem('My User Item', $this->urlForDefaultAction(), $orderId = 30);
+ // $menu->addManageItem('ExamplePlugin_MyUserItem', $this->urlForAction('showList'), $orderId = 30);
+ // $menu->addPlatformItem('ExamplePlugin_MyUserItem', $this->urlForDefaultAction(), $orderId = 30);
// or create a custom category
- // $menu->addItem('CoreAdminHome_MenuManage', 'My User Item', $this->urlForDefaultAction(), $orderId = 30);
+ // $menu->addItem('CoreAdminHome_MenuManage', 'ExamplePlugin_MyUserItem', $this->urlForDefaultAction(), $orderId = 30);
}
}