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.
Hi,
I have a menu with 2 menu links which link to pages :
- my_menu
- myPage_link_fr (link to myPage in french)
- myPage_link_en (link to the translation of myPage in english)
When I switch the language (URL selection with suffix) the link is well displayed in the correct language.
When I export the custom_menu and the two menu links in a feature, it throws an error "An illegal choice has been detected. Please contact the site administrator." and the myPage_link_en is not exported...
Is it possible to export menu_links in different languages ?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#4 | export_i18nmenus-1167430-3.patch | 5.8 KB | emorency |
Comments
Comment #1
jmcneil CreditAttribution: jmcneil commentedI am having the same issue, unable to export my french menu links, but can export my english ones
Comment #2
GuGuss CreditAttribution: GuGuss commentedTo handle that, I just duplicate the links instead of translate them.
It works when I export them in the installation profile, so...
Comment #3
emorency CreditAttribution: emorency commentedHere is a patch for exporting menu items in multiple language in the same feature.
It probably needs review for the code that sets the translation_sets title...
Comment #4
emorency CreditAttribution: emorency commentedComment #5
emorency CreditAttribution: emorency commentedDon't use this patch yet... It seems to duplicate menu items when content gets imported.
Comment #6
mpotter CreditAttribution: mpotter commentedComment #7
hefox CreditAttribution: hefox commentedIs this still an issue? I believe some of the menu link code has changed and there's a different bug related to language I saw filed recently suggestion it's possible, but buggy.
Comment #8
mpotter CreditAttribution: mpotter commented