Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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).
Comment | File | Size | Author |
---|---|---|---|
#6 | 1677112-6.patch | 1.74 KB | dsdeiz |
#5 | 1677112-5.patch | 1.27 KB | dsdeiz |
languages-next-to-submit-button.jpg | 23.66 KB | adriaanm |
Comments
Comment #1
donquixote CreditAttribution: donquixote commentedWhat is the translation mode for this menu? So I can reproduce..
Comment #2
donquixote CreditAttribution: donquixote commentedBtw, I recommend to also enable me_node_creation (if you don't have already)
Comment #3
adriaanm CreditAttribution: adriaanm commentedThe 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.
Comment #4
dsdeiz CreditAttribution: dsdeiz commentedHi, will try to check this. Implementation for multilingual is a little bit messy, sorry. Was planning to provide changes to it.
Comment #5
dsdeiz CreditAttribution: dsdeiz commentedPatch 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.
Comment #6
dsdeiz CreditAttribution: dsdeiz commentedAttached 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?Comment #7
dsdeiz CreditAttribution: dsdeiz commentedCommitted this to dev.