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.

CommentFileSizeAuthor
#4 export_i18nmenus-1167430-3.patch5.8 KBemorency
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jmcneil’s picture

I am having the same issue, unable to export my french menu links, but can export my english ones

GuGuss’s picture

To handle that, I just duplicate the links instead of translate them.

It works when I export them in the installation profile, so...

emorency’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-beta6
Component: User interface » Code
Status: Active » Needs review

Here 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...

emorency’s picture

emorency’s picture

Don't use this patch yet... It seems to duplicate menu items when content gets imported.

mpotter’s picture

Status: Needs review » Needs work
hefox’s picture

Issue summary: View changes
Status: Needs work » Postponed (maintainer needs more info)

Is 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.

mpotter’s picture

Priority: Major » Normal