Skip Navigation

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

Problem:
The language switcher on the product page only shows the default language because the page is missing its translations.
Solution:
We recommend checking the page for translation completeness. If you encounter warnings such as 'There's an issue with automatic translation' or 'Fix it to continue translating automatically', you should address these by clicking on 'Fix it to continue translating automatically'. You can then choose to either resume the automatic translation or opt to manually translate the page. Ensure that the translation progress bar reaches 100% before saving. This should allow the language switcher to function correctly in the secondary language on the front end.

If this solution does not resolve your issue or seems 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. If problems persist, please open a new support ticket.

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 3 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 1 month ago.

Assisted by: Mateus Getulio.

Author Posts
May 2, 2024 at 12:00 pm #15587043

jiriJ-8

And why on the product page is language switcher only for the default language?
hidden link

thanks

May 2, 2024 at 12:04 pm #15587047

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello there,

Thank you for contacting our support.

It is possible that this is happening due to you not having a translation available for that specific page yet.

In that case the default behavior is to skip the missing translation language in the language switcher.

You can, however, change this behavior by going to WPML -> Language -> Language switcher options > How to handle languages without translation and set it to 'Link to home of language for missing translations'.

You could also set up WPML so it knows that for that specific Post Type, when a translation is not found, it can redirect the user to the main language.

To do that you can follow the steps:

- Go to WPML -> Settings -> Post Types Translation
- Then you can set that post type(eg.: Pages, Post, Products, etc) to Translatable
use translation if available or fallback to default language.

This will cause that Post type to be redirect to the main language in case you still doesn't have a translation for that post in that language.

As soon as you have translated that post, the translated version will be served normally.

Thank you, please give it a try and let us know if it is working as expected for you.

Best,
Mateus

May 9, 2024 at 4:49 pm #15611644

jiriJ-8

Hi, it didnt work. I changed by your instructions. All pages seem to be translated. I added menu, switch to Pl and it is not tranlastaed. Dont you know where might be an issue?
thank you
hidden link

May 10, 2024 at 5:29 pm #15615951

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello there,

Thank you for trying it and sharing the results.

I checked it and the page you shared(Classe 7) is missing the translation.

When I edited this page I noticed two warnings(please see the screenshots):

"There's an issue with automatic translation"
"Fix it to continue translating automatically"

It caused the page not to be fully translated, you can click on 'Fix it to continue translating automatically' and then either resume the automatic translation or click on "Nevermind I don't want to use the automatic translation" and proceed with translating the page by yourself.

It is important that the translation progress bar reaches 100% before you save it, then you'll be able to switch to the secondary language in the front end.

Thank you, please let us know.
Mateus

warning1.png
warning2.png