Multilanguage site on Drupal 8 (AWE Page Translate tab??)

ptqs's picture
ptqs
Wed, 11/21/2018 - 09:05
#1
Multilanguage site on Drupal 8 (AWE Page Translate tab??)

Hi,

I've installed all the modules for language support in Drupal 8 supplied with Megatron theme.

(Language, Configuration Translation, Content Translation, Interface Translation) all enabled.

I've set the default language. I've enabled content type translation (see attachment awecontenttranslation)

When I go to Edit AWE Page, there is no tab for translation (see attachment awecontentedit)

So, how coud I map an AWE Page to a language, as to have the site switch from

megatron/en/myawepage

megatron/it/myawepage

??

khoa's picture
khoa
Mon, 11/26/2018 - 03:33

Hi,

Firstly, you create an English page using awecontent, set menu link for that page. Then, make a clone of English page and translate the new page into Italian, set menu link for it. Finally, you attach English page to English menu and attach Italian page to Italian menu.

Thanks!

ptqs's picture
ptqs
Fri, 12/07/2018 - 08:19

Then,

how to switch from a page to its translation using a page link such as 'language switcher'?

ptqs's picture
ptqs
Fri, 12/07/2018 - 10:57

Another question:

in my homepage AWE Page I have put a Contact Form trough awe block.

How to put a translated contact form in the respective translated homepage AWE Page ?

cindy's picture
cindy
Fri, 12/07/2018 - 21:33

Hello

Please send us the link of page contact form + admin account to log in and check your issue

cindy's picture
cindy
Thu, 12/13/2018 - 21:58

Hello

You can translate strings of contact form  here http://51.75.70.16/it/admin/config/regional/translate

ptqs's picture
ptqs
Mon, 12/17/2018 - 11:01

Hi,

the 'main navigation' menu provided with the theme, has an Icon selection combobox.

I've created a new menu but it doesn't shows the icon selection combobox. How could I solve this?

cindy's picture
cindy
Mon, 12/17/2018 - 22:40

icon selection is only available in main navigation. If you create another menu and you want icon selection option, we can guide you to do.

If you want us to customize for you, you will have to pay extra charge

Or you can try our module Megamenu https://megadrupal.com/project/md-megamenu 

ptqs's picture
ptqs
Tue, 12/18/2018 - 08:22

yes, could you guide me to do?

cindy's picture
cindy
Tue, 12/18/2018 - 21:43

Hello

Please open file md_theme.module (modules/custom/md_theme), and add condition if() for your menu

Currently, there is only 1 menu: MAIN

ptqs's picture
ptqs
Wed, 12/19/2018 - 04:35

Ok, after changing the if  :

function md_theme_form_menu_link_content_menu_link_content_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  // Modification for the form with the given form ID goes here. For example, if
  // FORM_ID is "user_register_form" this code would run only on the user
  // registration form.

  //kint($form_state->getFormObject());

  if($form_state->getFormObject()->getEntity()->getMenuName() == "main" ||
     $form_state->getFormObject()->getEntity()->getMenuName() == "main-navigation-english"

...

fu...nction md_theme_preprocess_menu(&$vars) {

  if ($vars['menu_name'] == 'main' ||

      $vars['menu_name'] == 'main-navigation-english'

I can see the icon combobox on the menu link edit page and I could save the icon.

But when I go to page, the menu icon for that link still doesn't show 

cindy's picture
cindy
Wed, 12/19/2018 - 22:04

Hello,

Override menu template, you can check 2 files: block--system-menu-block.html.twig and menu--main.html.twig in folder md_megatron

ptqs's picture
ptqs
Fri, 12/21/2018 - 09:45

Thanks,

another thing about Megaslider. 

I did clone Megaslider 1 but this clone doesn't disappear on mobile display width less than the settled size,

while the original Megaslider 1 supplied with the theme works well.

How to let this functionality works on the cloned one?

Veronika's picture
Veronika
Mon, 02/11/2019 - 06:37

Good day! Please tell me how to remove the English language switch from the block?

https://prnt.sc/mjiljl

These actions have failed - https://prnt.sc/mjilwo

cindy's picture
cindy
Mon, 02/11/2019 - 21:40
Veronika's picture
Veronika
Tue, 02/12/2019 - 12:14

Thanks you! ) I was afraid to delete the language that is in the default theme.

Veronika's picture
Veronika
Tue, 02/12/2019 - 18:04

Good day! Please tell me how to add a style field to the created menu in another language? By default, this is not in the template ..https://prnt.sc/mkapb5

cindy's picture
cindy
Tue, 02/12/2019 - 21:13

please create another topic @veronika 

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.