Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
frjo CreditAttribution: frjo commentedThis 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
Comment #2
vflirt CreditAttribution: vflirt commentedSorry for the double post. It seems fixed in the dev release :)