This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 6 replies, has 3 voices.

Last updated by Andreas W. 3 weeks, 2 days ago.

Assigned support staff: Andreas W..

Author Posts
September 26, 2019 at 4:07 pm

blakeP-2

I am trying to have my menus show up as translated.

Link to a page where the issue can be seen: enginecommerce.mx

I expected to see the menus like I have on the English site.

Instead, I get the strange menu at the top.

September 26, 2019 at 4:21 pm #4648847

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @blakep-2, welcome to the WPML support Forum!

This is our documentation on how to translate a menu: https://wpml.org/documentation/getting-started-guide/translating-menus/ - Could you please confirm that you have followed all steps in this guide?

If so, could you send us some screenshots of the issue, so we can better understand?

Please also check if the pages of the menu are already translated to the secondary language.

All the best,
Diego

September 26, 2019 at 4:33 pm #4648905

blakeP-2

Thanks for the quick response--my menu is not a standard WP menu--I do not have those options to follow the guide linked Instead, the theme uses theme settings for the menu. Attached are screenshots of the issue and the backend settings.

When I go to edit the field groups, I get options to translate the fields themselves but not the menu and data within them, therefore I can't get a translated menu to appear.

September 26, 2019 at 4:45 pm #4649057

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

The provided credentials do not grant access like admin, which for I am not able to investigate the issue.

In case the menu is not registered at Appearance -> Menus the issue is related to the coding in your starter theme.
https://codex.wordpress.org/Navigation_Menus

But try to translate the menu with our plugin String Translation.

Go to WPML -> Theme and Plugin Localization and scan the theme for new strings.

Now, go to WPML -> String Translation and click the option "translate texts in admin screens" at the bottom of the strings box.

Here you should see now a complete list of existing language domains on the site. Locate the domain of the theme and see if you find the strings related to the header options. If they exist mark their checkboxes, then scroll to the bottom of the page and apply the changes.

The strings should now be available on String Translation. Let me know if it worked out that way to translate them.

In case the strings are not showing up on String Translation please read the following documentation:
https://wpml.org/faq/language-setup/

Kind regards
Andreas

September 26, 2019 at 4:53 pm #4649153

blakeP-2

I've modified that login and have granted it admin permissions!

In the meantime I will start investigating the String Translation option as well and look into adding the gettext calls.

September 26, 2019 at 4:56 pm #4649167

blakeP-2

Further update--it appears that all of the header settings are stored in a header.config.yml file that the theme digests....I'm unsure of how to move forward from here, since this is an object format and I can't wrap text in the calls within this yml file.

title: Header
status: done
context:
  option:
    logo: "/images/Engine-Main-Logo.png"
    logo_white: /images/Engine-Main-Logo-white.png"
    buttons:
      - button_type: "default"
        button_text: "Login"
        button_url: "#"
      - button_type: "dark"
        button_text: "Schedule a Demo"
        button_url: "#"
    menu_items:
      - menu_item_text: "Platform"
        menu_item_url: "#"
        has_megamenu: "yes"
        megamenu:
          - large_heading: "Drive results and sell more all with the Engine"
            icon: "/images/responsive-icon_1responsive-icon.png"
            heading: "Product Overview"
            heading_url: "#"
            description_list:
              - text: "Discover what makes Engine the most robust eCommerce platform out there and compare our features with competitors"
          - icon: "/images/check-icon_1check-icon.png"
            heading: "Engine Email"
            heading_url: "#"
            description_list:
              - text: "Customer Email Tracking"
              - text: "Email Editor"
              - text: "Campaign Reporting"
              - text: "Automated Email Flows Tailored to your business"
          - icon: "/images/calculate-icon_1calculate-icon.png"
            heading: "Custom Reporting"
            heading_url: "#"
            description_list:
              - text: "Custom Reports"
              - text: "Create Reports and Schedules"
              - text: "Multi-user access for client relationships"
              - text: "Export on the fly"
          - icon: "/images/quote-chat-icon_1quote-chat-icon.png"
            heading: "Product Manager"
            heading_url: "#"
            description_list:
              - text: "Multi-view inventory views"
              - text: "User access and controls"
          - icon: "/images/shop-icon_1shop-icon.png"
            heading: "Engine Store Designer"
            heading_url: "#"
            description_list:
              - text: "Drag and Drop Blocks"
              - text: "In-content Promotions & Linking"
              - text: "No-Code Designer"
              - text: "Schedule Changes"
      - menu_item_text: "Resources"
        menu_item_url: "#"
      - menu_item_text: "Case Studies & Customers"
        menu_item_url: "#"
      - menu_item_text: "About"
        menu_item_url: "#"
      - menu_item_text: "For Agencies"
        menu_item_url: "#"

Above is the source of the header config file.

September 26, 2019 at 5:12 pm #4649227

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

In fact, the theme does only provide a small number of strings and not any options to translate for the menu.

This issue is theme-related and needs to be solved by a developer. Take note, that our support policy does not cover any custom work but I am sending you a link for reaching out to one of our contractors. Those contractors have experienced WordPress Developers with experience in WPML.

https://wpml.org/purchase/support-policy/

https://wpml.org/contractors/

We hope for your understanding.

Kind regards
Andreas