Skip to content

Commit

Permalink
Add translation to labels (#148)
Browse files Browse the repository at this point in the history
Yii::t('rbac-admin',$menu['name']),

and for disable cache set in module config ,cache => null.
  • Loading branch information
marciocamello authored and mdmunir committed Oct 4, 2017
1 parent bb90615 commit cbc143c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/MenuHelper.php
Expand Up @@ -202,7 +202,7 @@ private static function normalizeMenu(&$assigned, &$menus, $callback, $parent =
$item = call_user_func($callback, $menu);
} else {
$item = [
'label' => $menu['name'],
'label' => Yii::t('rbac-admin',$menu['name']),
'url' => static::parseRoute($menu['route']),
];
if ($menu['children'] != []) {
Expand Down

0 comments on commit cbc143c

Please sign in to comment.