I created at MainMenu multilingual menu items linked to terms (taxonomy) but they don't work.
One in portuguese and another one in esperanto.
They only works with article pages, but with terms both menu items (portuguese and esperanto) shows up.
The correct functionality would only one (according with the selected language) appear.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

devsaran’s picture

Assigned: Fabio Santos » Unassigned
Status: Active » Closed (works as designed)

Follow this for Multilingual Taxonomy http://drupal.org/node/313268

Fabio Santos’s picture

Status: Closed (works as designed) » Active
FileSize
538.31 KB

Thanks Saran,

I really followed the instructions but it only works for menus in blocks.

The problem is in the menu between the logo and slideshow (the menu designed for the theme). Seems that the code is already linked to MainMenu. Only menu items that is linked to Basic Pages really work, other way always shows up all menu items (portuguese and esperanto).

Ougrouk’s picture

Hi same here for me.
The menu elements will appear in all languages.
The fuctionality works with Main Menu in a "block" but not with the default Main Menu of Simple Corporate.

devsaran’s picture

Status: Active » Closed (works as designed)

You need to do code changes in page.tpl.php .. Change the Menu render code in page.tpl.php to

<?php
        if (module_exists('i18n')) {
            $main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
          } else {
          $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu'));
        }
       print drupal_render($main_menu_tree);
   
?>
alexd73’s picture

Version: 7.x-1.2 » 7.x-1.5
Status: Closed (works as designed) » Patch (to be ported)

If you do not enable a module "Menu translation", then you must change this code (line 94) in page.tpl.php

        if (module_exists('i18n')) {

to

        if (module_exists('i18n_menu')) {