I think it is related to this module.

First I patched the taxonomy_menu_trails module to look for right menu link, if it exists in current language, then fall back without condition. this ok.

Again that module do menu_tree_set_path($selected_item['menu_name'], $selected_item['link_path']); (correct)

then:


if (module_exists('menu_block')) {
    // Also set preferred item for Menu Block module
    $mb_preferred_links = &drupal_static('_menu_link_get_preferred');
    $mb_preferred_links[$_GET['q']][$selected_item['menu_name']] = $selected_item;
  }

what has to be changed here?

I'm using superfish, but I do not think it's that the problem.

Comments

smartango’s picture

Status: Active » Closed (won't fix)

I solved this with a query tag and hook_query_TAG_NAME_alter() in taxonomy_menu_trails:


function taxonomy_menu_trails_query_menu_link_get_preferred_alter(QueryAlterableInterface $query) {
    global $language;
    $query->condition("ml.language",$language->language);
    //$query->orderBy("ml.language=$language->language",'DESC');
}

and adding that tag to core menu.inc
here http://drupal.org/node/1627276 the tag name proposed is translatable, but it should be checked tables name .. it works for me now I would fix in future.

smartango’s picture

Issue summary: View changes

php format