Thank you for this menu. Loving it.

I'm using this module for a multilingual website. Some of the menu items were set to a different language. Despite this, that menus item still being displayed.

I tried "Multilingual Variables" #313272.

 // Primary and secondary links
  'primary-links',

Any idea what I can do?

Comments

jessicakoh’s picture

Try this

'menu_primary_links_source',
'menu_secondary_links_source',
'menu_default_node_menu',
'dynamic_persistent_menu_menu_root',

mnp’s picture

Not hiding for me
Is this working for you

jessicakoh’s picture

Yes, it does.

Note, you will not see "This is a multilingual field". But it works.

When I change to my other language, it will display secondary menu.

mnp’s picture

I created seperate primary menu items for two languages
it is showing all the menus

jessicakoh’s picture

Do you see any variable listed in i18n_variables table? (If not, check your typo in settings.php)

Set both menu (primary and secondary) language to neutral.

1. On the block configuration for this block, "Menu root:", select Primary for your default language. Click Save.

2. Go to the same block configuration, now, enter the language code, e.g. http://example.com/zh-hans/admin/build/block/configure/dynamic_persisten..., Go to "Menu root:", select "Secondary Links"

Go back to your default language i.e. remove zh-hans in the URL. Verify that you have "Primary link" for your default language in "Menu root:".

If you can't see this, I suspect your variable is not right.

Post the last part of your settings.php (variable parts).

mnp’s picture

@jessicakoh
Thank you so much
it's working great now
thanks for your help

jessicakoh’s picture

Status: Active » Closed (fixed)

no problemo.