Use translated menu items, if applicable.

Comments

rtdean93’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Can anyone tell me if this has been addressed for 7?

I have translated my menus which are working fine in every module except this one.

solotandem’s picture

Assigned: Unassigned » solotandem
Status: Active » Fixed

7.x version
Implemented in this commit.

Please grab the latest dev release (created after this comment) or commit to 7.x branch, test, and report back.

6.x version
Implemented in this commit.

Please grab the latest dev release (created after this comment) or commit to 6.x branch, test, and report back.

rtdean93’s picture

Thanks for this update. It works great.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

wiliam_steven’s picture

It is still not working, i have trying it.

I have see in the code

// Localize the tree.
if (module_exists('i18nmenu')) {
i18nmenu_localize_tree($tree);
}

and look at the localization module and the module name is not same so I have changing it to

// Localize the tree.
if (module_exists('i18n_menu')) {
$tree = i18n_menu_localize_tree($tree);
}

and now its working, please update it on the stable release.

Thanks for the good work

esunger’s picture

Solution for Drupal 7

in /all/modules/accordion_menu/includes/view.inc (21)

// Localize the tree.
if (module_exists('i18nmenu')) {
i18nmenu_localize_tree($tree);
}

Change to

// Localize the tree.
if (function_exists('i18n_menu_localize_tree')) {
$tree = i18n_menu_localize_tree($tree);
}

its working for me