For the menu translation you are using :
if (module_exists('i18nmenu')) {
i18nmenu_localize_tree($tree);
}

And considering the i18n this is not working as there is not such module neither such function.

That should be changed to :
if (module_exists('i18n_menu')) {
$tree = i18n_menu_localize_tree($tree);
}

Comments

frjo’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Active » Closed (duplicate)

This is already fixed in 7-dev. Please test it, if I get some reports that it works well I will make in a 7.x-1.0 release.

See https://drupal.org/node/1199282

vflirt’s picture

Sorry for the double post. It seems fixed in the dev release :)