Download & Extend

i18n Intergration problem - menu items in all languages are displayed

Project:DHTML Menu
Version:6.x-3.5
Component:PHP Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

I have drupal 6.x site with i18n and dhtml_menu
all items apear in the menu even when other language is active
for example when I am in the English site (example.com/en) , i see also the menu items that are marked as other language (*not* language natural items)

when i have switched to other theme without the dhtml_menu this worked fine

Thanks for the great module

Comments

#1

someone can help me with that ,
I am about to uninstall this great module because of that

#2

adding this code just before the end of the function dhtml_menu_theme_menu_item_link($link) {
solved my problem , hope this helps someone

  global $language;
  if(!empty($link['localized_options']['langcode'])
      &&isset($link['localized_options']['langcode'])&&
      $link['localized_options']['langcode']!=$language->language)
    return;
   
 
  // Pass the altered variables to the normal menu themer.
  return $function($link);

#3

Status:active» needs review

please add this code so people can review it

#4

I added the code in #2 and it fixed that same issue with my site.

nobody click here