Closed (fixed)
Project:
Accordion Menu
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 May 2011 at 16:32 UTC
Updated:
7 Nov 2012 at 09:56 UTC
Use translated menu items, if applicable.
Comments
Comment #1
rtdean93 commentedCan 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.
Comment #2
solotandem commented7.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.
Comment #3
rtdean93 commentedThanks for this update. It works great.
Comment #5
wiliam_steven commentedIt 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
Comment #6
esunger commentedSolution 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