Language support

greatmatter's picture
greatmatter
Tue, 06/19/2018 - 15:34
#1
Language support

We would like to have custom HTML for different languages. We are able to save different languages for top-level menus through Drupal’s normal menu translation mechanism. However, when we edit the HTML of a menu item through MegaMenu there seems to be only one version used for all languages.

Our questions:

1. Is this a setup error? If so, how do we configure the saving of multiple versions of the HTML, one per language?

2. If it isn’t a setup error, can this feature be developed for a future version?

cindy's picture
cindy
Thu, 06/28/2018 - 23:59

Hi there,

Currently, our module megamenu has not supported multi languages yet. We will consider this feature for future versions
However, we have some suggestions for you regarding of mutilingual menu:
+ Create some distinct megamenus, each menu is in different language
+ Assign all megamenu blocks into the region you want to display. Then config each megamenu to display in different language

greatmatter's picture
greatmatter
Fri, 06/29/2018 - 12:31

Thank you for the update; it's pretty critical that a menu follow the same language conventions as a standard menu.

Also: we're seeing a LOT of PHP warnings coming from AweBuilder:

Notice: Undefined index: settings in Drupal\awe_builder\AweBuilder\AweBuilderRender::processData() (line 40
Notice: Undefined index: cid in Drupal\awe_builder\AweBuilder\AweBuilderRender::processData() (line 38
Warning: Invalid argument supplied for foreach() in Drupal\awe_builder\AweBuilder\AweBuilderRender::getOverlay() (line 121

cindy's picture
cindy
Sun, 07/01/2018 - 22:51

Hi,

The problem is because you have not re-update your megamenu. When you add a new menu link or remove old menu link, you have to edit (click on pen icon) and re-save to update new data

greatmatter's picture
greatmatter
Tue, 07/10/2018 - 12:53

Cindy--is your response directed at the language part, or all the warnings?

cindy's picture
cindy
Wed, 07/11/2018 - 23:54

Hi,

The solution (re-save) is for PHP warnings issue

greatmatter's picture
greatmatter
Thu, 07/12/2018 - 10:29

Is there a way you can add a hook to the menu system to avoid this? Our client doesn't want to go through a multiple-step process to do that...

cindy's picture
cindy
Fri, 07/13/2018 - 01:00

The most simple way is that you open builder after completing your menu link modification (so you do not have to open builder for several times)

We can use hook_menu_link_content_insert/update/delete for menu link editing. However, it could not be done now. We will consider to update this for future version 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.