I have a problem with a site using i18n_menu.module. When I go to the “edit menu” page (ie. admin/structure/menu/manage/main-menu/edit ), and try to set the “Multilingual Options”, these are not saved to the database, ie. language keeps the value 'und' and i18n_mode keeps the value 0.

If I change these values in the database, empty the cache and go back to the edit menu page, the fieldset will reflect the values stored in the database. But if I click to save the menu (after re-arranging menu items, for example), the settings will be reverted to their default value in the database and cannot be changed back using the interface.

I'm trying to figure out how to fix this.

Comments

mikl’s picture

Status: Active » Needs review
StatusFileSize
new1.17 KB

I've found a workaround, patch attached.

Cogax’s picture

works fine

k4v’s picture

Works for me too. Thanks =D.

k4v’s picture

This seems to be a side effect with some other module. On a fresh test site with only content translation activated, I don't need the patch to save the settings.

alan d.’s picture

Did anyone have Simplified Menu Administration enabled? This works fine when that module is disabled.

Cogax’s picture

No, its not installed in my project.
If i find time, i will disable all modules one by one and then hopefully i will find out wich module cases this bug.

Edit
Well i was wrong. Yes i have it installed and yes after disabling the data get saved right. But when i disabled it the language switcher right below isn't showing up, but i don't now if it should be like this or if its a bug.

alan d.’s picture

language switcher right below isn't showing up

Same, I'm not sure either :?

bitshiftcop’s picture

#5 worked! After disabling Simplified Menu Administration I could translate my menus

lolandese’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +incompatibility
Related issues: +#1987914: Translation mode doesn't save settings, +#1256700: SMA incompatible with Menu translation of i18n

The #1 patch still applies cleanly against the latest Drupal version (7.34) and works as expected.

martin@martin-X501A1:~/www/orange/sites/all/modules/contrib/i18n$ git apply -v 2221189-i18n-menu-options-not-saved-2014-03-19.patch
Checking patch i18n_menu/i18n_menu.module...
Applied patch i18n_menu/i18n_menu.module cleanly.

Of course also #5 works by disabling the conflicting module, Simplified Menu Administration. As the functionality of that module is not crucial (only fixing a UX issue), that seems a viable option as well. The incompatibility is documented:
i18n: Compatibility with contributed modules

b-prod’s picture

Status: Reviewed & tested by the community » Closed (works as designed)

The discussed bug is caused by the Simplified Menu Administration module which does not take care of the hierarchical states of the 2 merged form. There is a patch fixing this.

Providing a patch against i18n menu is not relevant, since this module uses the Drupal hooks as expected.

see #1256700-10: SMA incompatible with Menu translation of i18n