Hello,

Drupal core has a page that lists all menu items for each menu (path example: admin/structure/menu/manage/main-menu). This page lists the menu's links in a table, with an "Operations" column containing links such as "edit", "reset" or "delete". I suggest to add a "translate" link to allow users to create/edit menu translations.

I'm working on the patch right now, and will provide it soon (just thought of some checks I'd better add).

Regards,

David

Comments

David Stosik’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Patch is attached here.
Feel free to test and give feedback.

Regards,
David

This patch is part of the #1day1patch initiative.

David Stosik’s picture

Just wanted to add a screenshot.

David

Add "translate" operation to menu items list page.

simon georges’s picture

Status: Needs review » Needs work

There's a admin/structure/menu/item/{}/translate inside, not sure the empty brackets are intended ;-)

David Stosik’s picture

Status: Needs work » Needs review
StatusFileSize
new1.06 KB

I left an error in my patch, fixed in the one attached below.

jose reyero’s picture

Committed, thanks.

jose reyero’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

webkomplize’s picture

I get this translation links now on menus which translation mode is set to fixed language, which doesn't make sense here anymore? Could / should there be a conditional statement within this hook?