Problem/Motivation

When using the Content Translation module the menu link title is not translated, although the language was switched. The same goes with the hover description.

Steps to reproduce

  • install Content Translation module with dependency Language module
  • in the Content Translation configuration turn on content and basic page, as well as Custom menu link
  • add another language to your site (admin/config/regional/language)
  • create a basic page (with title and body), click Provide a menu link, add a menu link title/description, hit save
  • use the translate tab to create a new translation of this very site and give it a different menu link title
  • in the frontend change the language. only the last given menu link/description title is presented - regardless of the language set

Expected behavior

When editing a translation, the menu title link/description should be bound to the current language. Like the content switches language, the menu link title should switch, too.

Workaround

  • go to structur>menus (admin/structure/menu) and edit the main navigation
  • in the list click on the newly generated menu entry and use the translate tab, to set a new translation for this menu

Final notes

going back to the basic page editing: saving the existing content in the different languages will only overwrite the custom menu of the primary language. The values for menu title link and description will be prefilled with and changes will affect only the primary language.

Comments

tassilogroeper’s picture

Title: Menu link title not translated » Menu link title/description not translated
Issue summary: View changes
tassilogroeper’s picture

Issue summary: View changes
Anonymous’s picture

Version: 8.0.0-beta2 » 8.0.x-dev

I reproduced this issue with a fresh install of 8.0.x

Anonymous’s picture

Drupal\node\NodeForm::submitForm() calls menu_ui.module::menu_ui_node_submit() which doens't take the current language into account.

A little research eventually lead me to #2256497: [meta] Menu Links - New Plan for the Homestretch which is meta issue describing a general plan for handling menu_links in the future. I guess this issue should be postponed until it's clear how and when the menu link issues will be tackled.

ianthomas_uk’s picture

dawehner’s picture

Status: Active » Fixed

Yeah I'm pretty convinced that this shoudl be fixed in the meantime.

Status: Fixed » Closed (fixed)

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