Development

Appending Language to Menu Items in Menu Admin (Drupal 7)

If you are working with a Drupal 7 menu that contains menu items across multiple languages it is a little cumbersome to see them all on the same screen. Right now we have all of the translations in place (3 nodes per piece of content), but we haven’t translated the titles yet. It’s very hard to see which items will appear for which languages. Imagine if we add 75 more menu items!

2016-08-31_15-01-44

Here’s a quick snippet that will show the language beside each item. Note that it’s the language of the menu item itself, not the content that it points to.

Here’s the result. I translated (using Google Translate, so probably not too accurate) the Spanish items to show what that looks like:

2016-08-31_15-07-04

Leave a Reply

Your email address will not be published.