Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is unable to find and edit the header menu translation in Hungarian and other languages using WPML. Additionally, there is an issue with the WooCommerce cart that prompts a language switch message, preventing purchases in languages other than English unless logged in as an admin.
Solution:
For editing the header menu translation, we recommend navigating to Appearance->Menus in the WordPress dashboard, switching to the desired translation language, and selecting your menu from the drop-down. This approach allows you to edit menu items in other languages as you would in the default language. For more detailed steps, please refer to our documentation on translating menus: Translating Menus.

Regarding the WooCommerce cart issue, navigate to WooCommerce -> WooCommerce Multilingual, click on the Settings tab, and under the Cart section, switch to 'Synchronize cart content'. This should resolve the problem with the cart emptying when switching languages. For further guidance, check out our documentation here: Clearing Cart Contents When Language or Currency Change.

If these solutions do not resolve your issues or if they seem outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML Support Forum.

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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Bobby 1 month, 1 week ago.

Assisted by: Bobby.

Author Posts
September 17, 2024 at 2:13 pm #16189139

mariyaG-3

Background of the issue:
I try to edit the header menu in Hungarian language (I will need to edit it to all languages later) hidden link Itthon Üzlet Blog GYIK Rólunk Kapcsolat but I cannot find the menu in String translation.

Symptoms:
When I search for 'Itthon' and select 'Include translations' it returns 'No strings found' and I cannot find where I can edit the translation of this menu.

Questions:
How can I edit the header menu translation in WPML?
Why is the string 'Itthon' not found in String translation?

September 17, 2024 at 6:18 pm #16190161

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Please go to Appearance->Menus and switch to the translation language, then select your menu from the drop-down.

This should allow you to edit the menu items as you would the default language menu and update.

Let me know your results, please.

Related Documentation> https://wpml.org/documentation/getting-started-guide/translating-menus/#fully-custom-create-menus-manually

September 17, 2024 at 6:43 pm #16190314

mariyaG-3

Now the menus disappear to all languages EN HU CZ SK and I cannot add a menu.

I have to make up a backup to restore at least previous satiation.

q2.jpg
September 18, 2024 at 5:22 am #16191040

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for sharing the screenshot!

Are all the pages on your site translated, if not then are at least the pages included int he menu translated?

If they are not they will not display in the translation.

October 1, 2024 at 9:24 pm #16242886

mariyaG-3

Hello, I have another problem

when I try to do a purchase in any language (except English - English is OK)
for example:
hidden link

when I hit add to cart the site start to load the cart and then a massage pop up:

"Switching language?

You've switched the language and there are items in the cart. If you keep the Magyar language, the cart will be emptied and you will have to add the items again to the cart."

and I cannot make a purchase (only when I am logged as admin to WordPress there is no problem), but with new browser or in incognito mode I cannot make a purchase.

can you help me with that.

Thanks

problem1.jpg
October 2, 2024 at 6:47 pm #16247174

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

I can reproduce the new issue you are referring to. Just to verify is the original issue of this thread resolved?

Go to the WooCommerce -> WooCommerce Multilingual page and click the Settings tab. There, look for the Cart section.

Switch to Synchronize cart content and let me know your results.

Documentation:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/clearing-cart-contents-when-language-or-currency-change/

October 2, 2024 at 7:07 pm #16247223

mariyaG-3

Thank you.
You help me a lot.
5 star help.

It is strange that these settings are not selected by default in woocommerce and cause a problem. I can recommend: Synchronize cart content when switching languages is selected by default.