Skip Navigation

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

Problem:
The client reported that the language switcher on their website only displayed English and did not show Japanese as an option, despite setting up automatic translations in WPML. The client also noted that many pages were marked as 'Needs translation' and manual translation options appeared instead of automatic translations.
Solution:
We advised the client to check if the content was already translated and published, as the language switcher only displays languages for which translations are available and published. We identified that the Classic Translation Editor (CTE), which does not support automatic translations, was active. We recommended switching to the Advanced Translation Editor (ATE) for automatic translation capabilities. The client was guided to change the settings in WPML to 'Translate what you choose' and to send a page for automatic translation as a test. We provided a link to the documentation on how to review automatic translations: https://wpml.org/documentation/automatic-translation/how-to-review-automatic-translations-on-your-site/

Please note that this solution might be outdated or not applicable to your specific case. 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 the issue persists, please open a new support ticket at https://wpml.org/forums/forum/english-support/.

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

Last updated by craigR-9 8 months, 1 week ago.

Assisted by: Mihai Apetrei.

Author Posts
October 21, 2024 at 10:20 pm #16314552

craigR-9

Background of the issue:
The language switcher appears in the footer on hidden link but only shows English as an option. It should show English as the primary language with Japanese as an option.

Symptoms:
The optional language option (Japanese) doesn't appear in the language switcher.

Questions:
Why is the language switcher not appearing on my website correctly?

October 21, 2024 at 10:38 pm #16314572

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Can you please let me know if you translated the content already?

Because if the content was not translated already, seeing just one of the language flags (one language) in the language switcher is something normal.

Please check if the page you are looking at has been translated—or if the translation has been published and is not in "draft" mode or "under review" status.

Please let me know how that goes.

Kind regards,
Mihai Apetrei

October 21, 2024 at 11:36 pm #16314619

craigR-9

Thanks Mihai.

In the setup wizard I set translation to automatic, so the expected behavior was that the translation was automatically completed.

In WPML/Translations/ Translations queue there are many pages with the Status 'Needs translation'.

When I select the Translate button in the Actions column, it loads a page with manual translation functionality, which is not what I want.

Did the automatic translation fail, and if so how do I fix it?

October 22, 2024 at 10:08 pm #16319498

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

If the settings are set so that you need to review the translation before it gets published, then it will still need you to review and accept it.

Related documentation:
https://wpml.org/documentation/automatic-translation/how-to-review-automatic-translations-on-your-site/

Can you please check if this is the case?

If it isn't, please create a full website backup and share the credentials in the private fields I am enabling below.

October 23, 2024 at 10:11 pm #16323715

craigR-9

Mihai I can't seem to reply without exposing login details publicly. Please send me an email instead.

October 23, 2024 at 10:38 pm #16323762

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

You should be able to edit your last reply with the older credentials.

I am also enabling new private fields for you below.

October 25, 2024 at 11:49 am #16330419

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Thank you.

The issue now is that the credentials work but I'm limited to the front-end area of the site.

From what it looks like, this user doesn't have Full Administrator access.

Can you please check?

Thank you.

October 25, 2024 at 12:06 pm #16330528

craigR-9

Apologies Mihai, I've switched you to an admin now.

October 25, 2024 at 12:23 pm #16330584

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Thank you.

I was able to access the backend correctly this time.

I tested the homepage and we have a gear icon which means the translation is not saved/published/active.

We need to see a "pencil" icon if the translation is published.

When I click the gear icon, I get sent here:
hidden link

It seems there is no translation for that page yet - the fields on the right for Japanese are blank.

Screenshot 2024-10-25 at 15.20.03.png
October 25, 2024 at 8:33 pm #16332196

craigR-9

Thank you Mihai. I'm aware there are no translations yet and the fields are blank. I wanted WPML to perform automatic translation, why hasn't it done that?

October 25, 2024 at 9:26 pm #16332262

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Because I have seen the interface here (hidden link), I thought that it was on purpose because that's using the CTE (Classic Translation Editor).

The CTE doesn't come with automatic translation functionality. So inside WPML > Settings, we need to enable the Advanced Translation Editor (ATE) instead.

After you do that, can you please switch to "Translate what you choose" and then send one page for automatic translation for testing purposes by following the steps here:
https://wpml.org/documentation/automatic-translation/

You can reactivate "Translate everything automatically" if you want. Still, I usually don't recommend that mode because with that one, WPML will try to download ALL the sites, and on your site, you might have content that's not finished yet, that you might still be working on, or that you don't even want to translate.

I usually prefer "translate what you choose" because it gives me full control over what gets automatically translated.

There are no errors in the ATE log (hidden link), so there's a chance the only issue we have here is that CTE is active instead of the recommended ATE (you will see in the screenshot I'm attaching that currently we have CTE active).

I hope that you will find this information helpful.

Screenshot 2024-10-26 at 00.20.32.png
October 25, 2024 at 9:47 pm #16332293
craigR-9

Thanks Mihai. Appreciate all that information. I have translated the home page and the option to switch to Japanese appears in the footer now, however when switching to Japanese the page's content is blank. Any thoughts on why this might be?

Thanks for all your help.

October 28, 2024 at 2:01 pm #16338058

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi Craig and welcome back.

Sorry for the delayed response. There's been a weekend, and most of the support team does not work on weekends.

I'm happy that the Japanese flag is now showing up on the site.

This situation is a bit bizarre because, from what I can see here (hidden link), there's a good amount of translated content.

I am not sure if there's any missing content on that page. Still, there's a chance this might be a cache-related issue where we need to clear local and any server/cdn caching fully, or it might be an issue between WPML and (at least) one of the other active plugins (or the currently active theme), or there's a chance that due to the fact the homepage is built out of custom fields (from what I was able to understand by looking at the backend - hidden link), the current ACF setup might not be right (we have some amazing documentation regarding this topic here but maybe you already checked it - https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/). However, the fact that WPML can see content and translate it is a good sign.

This is a different issue than the initially reported one, and since, per our Support Policy, we can handle only one problem/issue per ticket, I am creating a separate ticket for this unique issue.

Continuing with one issue per ticket helps supporters focus on one problem at once and enables other users to find solutions to their questions faster.

I created a new ticket for you in regard to the new issue here:
https://wpml.org/forums/topic/split-the-japanese-version-of-our-homepage-contains-translations-in-ate-but-shows-up-blank-on-the-front-end/

Can you please mark this ticket as resolved and then try to see if there is any existing caching that can be cleared? Please let us know if you are able to find anything extra in the new ticket I created and we will continue with this in that new ticket.

Thank you very much for your understanding and cooperation.

Mihai

October 29, 2024 at 4:33 am #16340096

craigR-9

Okay thank Mihai. I will try to determine how difficult this will be to resolve and then reply in the other ticket.