I have 8 menu items, 1 dutch item and 7 english items.

The language of these menu-items is displayed next to the "save configuration" button on the Power Edit page (see screenshot attached).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

donquixote’s picture

What is the translation mode for this menu? So I can reproduce..

donquixote’s picture

Btw, I recommend to also enable me_node_creation (if you don't have already)

adriaanm’s picture

The translation mode is "No multilingual options for menu items. Only the menu will be translatable."

The menu items refer to translated nodes (1 dutch node, 7 english nodes).

Edit: i can reproduce this behaviour with or without me_node_creation enabled.

dsdeiz’s picture

Hi, will try to check this. Implementation for multilingual is a little bit messy, sorry. Was planning to provide changes to it.

dsdeiz’s picture

Status: Active » Needs review
FileSize
1.27 KB

Patch attached. Please try. Still a little messy the way I see it but I can't seem to think of a better way to do it.

dsdeiz’s picture

FileSize
1.74 KB

Attached another patch. I've removed ... && i18n_language_name($item['language']) != t('Undefined'). Menu item language becomes "Undefined" when you change the Multilingual options from "No multilingual options for menu items. Only the menu will be translatable." to "Translate and Localize. Menu items with language will allow translations. Menu items without language will be localized." and back to the first option. Somehow related to #1594804: Menu language Undefined when it inherits language from node. I guess checking if language is "Undefined" due to a bug in i18n_menu is out of scope for menu_editor?

dsdeiz’s picture

Status: Needs review » Fixed

Committed this to dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.