Skip Navigation

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 8 replies, has 1 voice.

Last updated by Andrey 4 days, 2 hours ago.

Assisted by: Andrey.

Author Posts
November 15, 2024 at 10:44 am #16407265

ziga pipan

Background of the issue:
I am trying to translate a string in a header on my site using WPML.

Symptoms:
The string in the header is not translating.

Questions:
How can I translate a string in a header using WPML?

November 15, 2024 at 10:47 am #16407386

ziga pipan

This is the site
hidden link
I'm using xstore theme

Phone number is translated but it won't show.
hidden link

I also tried "Translate texts in admin screens" and "Look for strings while pages are rendered" but nothing worked.

November 15, 2024 at 9:17 pm #16409837

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

While one of my teammates is handling your ticket, I will provide you with some initial debugging steps.

Please try the following:

1. Navigate to "Translate texts in admin screens" in WPML → String Translation.
2. Select the string, for example, "Phone number" and click on "Export as a WPML configuration file.
3. Put the configuration into the WPML → Settings → Custom XML Configuration tab.
4. Double-check to ensure the translation exists.
5. Check the frontend.

November 17, 2024 at 7:07 pm #16412040

ziga pipan

If I select this
hidden link

I get this, so no phone number
hidden link

November 18, 2024 at 1:46 pm #16415067

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Please update your WPML plugin and add-ons to the latest version, 4.6.14, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to backup your database before you proceed.

Let me know if the issue persists after an update has been done. Have you add configuration go WPML → Settings → Custom XML Configuration tab?

November 18, 2024 at 5:43 pm #16416248

ziga pipan

I update all the plugins regulary, and not once has an update helped any of my issues. I will just duplicate the header and us it on another language, unfortunately I don't have time left to tackle this issue rn.

November 19, 2024 at 8:35 pm #16421481

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for your feedback. Have you found a workaround, or would you like me to check this issue further?

November 20, 2024 at 10:28 am #16423837

ziga pipan

this works for now, will be back with my next website.

November 20, 2024 at 1:39 pm #16424874

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you. You are always welcome to open a new ticket if needed.