Skip to content Skip to sidebar

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

Problem:
The client reported that the language switcher was not displaying correctly on their website's menu. Specifically, the switcher was not centered, and hovering over the flags displayed code instead of the expected flag and country name.
Solution:
We advised the client to check if the content on their pages was fully translated and published. Unpublished translations could cause the language switcher to display incorrectly. We recommended checking the WordPress 'Pages' section in the backend to see the status of translations. If a pencil icon is visible, the translation is published. An eye icon indicates the translation needs review, a gear icon suggests the translation is not saved, and a circled arrows sync icon means the translation needs to be updated due to changes in the main language.

If you're experiencing similar issues with your language switcher, we recommend following these steps to ensure all translations are complete and published. If the problem persists, it might be due to an outdated solution or a different issue. 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 these steps do not resolve the issue, please open a new support ticket at WPML support forum for further assistance.

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

Last updated by Mihai Apetrei 1 year, 8 months ago.

Assisted by: Mihai Apetrei.

Author Posts
August 12, 2024 at 12:06 pm #16062047

austinN

Hi Mihai,

Sorry because i delete that menu language switcher already. Let me create it again. And please help me to check it again. Thank you in advance.

Austin Ng

August 12, 2024 at 12:09 pm #16062095

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 that you are looking at has been translated - or if the translation has been published and is not in "draft" mode or "under review" status.

When you are in the "Pages" WordPress main page in the backend, next to the default langauge pages, on the column from the right side that is dedicated for the existing translations for a page, you should see a "pencil" edit icon in case the translation has been published. If you are seeing an eye icon or a gear icon or a sync circled arrow icon, then the translation is not published yet.

Eye icon means that you need to review and accept the translation first in order to be published.

Gear icon means that the translation is not saved yet, something is bugging out. You can try to click it, make sure that at the bottom it is mentioned that the translation is 100% complete and the ntry to resave.

If there is a circled arrows sync icon, that means that there has been an update in the main language and that you need to click it and resave the translation.

Please let me know how that goes.

Kind regards,
Mihai Apetrei

August 13, 2024 at 2:05 am #16064169
austinN

Hi Mihai

The menu in frontpage not working instead i create another menu language already. The language issues with Pages is solved but switcher not in the middle of menu, drop down flag and country name is Press enter and hover to flags it show code like a picture i attachment.

New threads created by Mihai Apetrei and linked to this one are listed below:

https://wpml.org/forums/topic/split-weird-content-showing-up-when-i-hover-over-the-flag-image-in-the-language-switcher/

z5725645914190_018fe6ed54a401c79e3256183a8a4b3c.jpg
Screenshot 2024-08-13 085425.png
August 13, 2024 at 11:55 pm #16068338

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there and welcome back.

I am happy to hear that the initial issue was resolved.

Per our Support Policy, we can handle only one issue per ticket.

Continuing with one issue per ticket helps not only supporters to focus on one issue at once, but also 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-weird-content-showing-up-when-i-hover-over-the-flag-image-in-the-language-switcher/

You will be notified via email when there's an answer to that ticket, too.

Also, can you please mark this current ticket as resolved?

Thank you.

Mihai