Hi guys,

I noticed that many of the "menu modules"-developers just forget to implement multilinguage support in their module.

Please update the code like this: (I don't know how to create the patch)

superfish.module, line 277

$cache['menu'] = menu_tree_all_data($menu_name);

With

$tree = menu_tree_all_data($menu_name);
// Localize the tree.
if (module_exists('i18n_menu')) {
$tree = i18n_menu_localize_tree($tree);
}
$cache['menu'] = $tree;

And further in superfish.module, on line 812:

$var = array(
  'id' => $id,
  'menu' => $cache['menu'],
  'depth' => $depth,
  'trail' => superfish_build_page_trail(menu_tree_page_data($menu_name)),
  'sfsettings' => $sfsettings
);

With:

$tree = menu_tree_page_data($menu_name);
// Localize the tree.
if (module_exists('i18n_menu')) {
  $tree = i18n_menu_localize_tree($tree);
}
$var = array(
  'id' => $id,
  'menu' => $cache['menu'],
  'depth' => $depth,
  'trail' => superfish_build_page_trail($tree),
  'sfsettings' => $sfsettings
);

Comments

mehrpadin’s picture

Hey Kim,

Thank you, and I appreciate this, but you should just upgrade to v1.9-beta :)

Robin Millette’s picture

Version: 7.x-1.8 » 7.x-1.x-dev
Status: Active » Fixed
havran’s picture

Thanks for patch.

Status: Fixed » Closed (fixed)

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