Skip Navigation

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

Problem:
The client is experiencing an issue where translations made using WPML in WordPress do not appear correctly on the front end. For example, the string 'Czytaj więcej' is translated to 'Read more' in WPML, but still displays as 'Czytaj więcej' on the website.
Solution:
We added specific XML code to the WPML-> Settings-> Custom XML tab to ensure that Elementor widgets are properly registered for translation. Here is the XML code we used:

<wpml-config><elementor-widgets><widget name="partdo-page-banner"><fields><field>title</field><field>desc</field><field>tooltip_content</field></fields></widget></elementor-widgets></wpml-config>

We recommend checking our guide on how to register page builder widgets for translation.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, please open a new support ticket. We also 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. For further assistance, you can contact us directly through our 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 23 replies, has 2 voices.

Last updated by Osama Mersal 10 months, 1 week ago.

Assisted by: Osama Mersal.

Author Posts
July 26, 2024 at 5:27 pm #16009496

kamilO

Background of the issue:
I have a problem with your plugin. I mean I translate everything using WPML in WordPress and when I go on the front end half of the translation doesn't work.

Symptoms:
The WPML string is translated, for example, 'Czytaj więcej' to 'Read more', but on the front end, it is still 'Czytaj więcej'.

Questions:
Why is the translation not appearing correctly on the front end?

July 28, 2024 at 1:10 pm #16012171

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

1) Would you please elaborate more on the issue to help me understand it better?

It would be very helpful if you could share screenshots or a screen-recorded video while reproducing the issue.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.

Best regards,
Osama

July 29, 2024 at 8:18 am #16014348

kamilO

Osama Mersal

website.png
Translation string.png
July 29, 2024 at 9:10 am #16014781

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

1) Please add the debug information in their field.

2) I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

July 29, 2024 at 10:24 am #16015297

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for the access details. Please check the following steps:

1- Edit the page in the default language
2- Add "V2" to the title and update the page
3- Delete the "V2" and update the page
4- Update the translation using the translation manager
5- Flush the object cache
6- Check the hidden link">page on the front end

Best regards,
Osama

July 29, 2024 at 11:33 am #16015574

kamilO

Hello,
I am doing it but after Flushing the cache website doesn't working and I have problem with css.
When i regenerate CSS from elementor it returns to old version

July 29, 2024 at 11:53 am #16015783

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I resaved the hidden link">page, and it worked correctly.

Best regards,
Osama

2024-07-29_14-52-15.jpg
July 29, 2024 at 12:03 pm #16015814

kamilO

Alright thank you,
But still you have heading "O firmie" but it's should be "About company"

July 29, 2024 at 12:17 pm #16015894

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

I added the following XML code to WPML-> Settings-> Custom XML tab.

<wpml-config>
  <elementor-widgets>
    <widget name="partdo-page-banner">
      <fields>
        <field>title</field>
        <field>desc</field>
        <field>tooltip_content</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

Kindly check this guide to know more about registering Elementor widgets for translation.

Please check the hidden link">page and let me know if the page title is translated correctly.

Best regards,
Osama

July 29, 2024 at 1:21 pm #16016278

kamilO

Hi,
One more question. Is footer need to translate with the same method? I mean the XML custom tab?

Best regards

July 29, 2024 at 1:34 pm #16016333

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

The footer seems to be created using Appearance-> Widgets, so please go to WPML-> String Translation and search for the strings to translate them.

Best regards,
Osama

July 29, 2024 at 1:47 pm #16016409

kamilO

So now i have this 😀
My polish text its display as english

obraz_2024-07-29_154745083.png
July 29, 2024 at 1:54 pm #16016430

kamilO

Okay nevermind it's working
Thank you for all i hope you will have great day <3
Best regards

July 29, 2024 at 3:02 pm #16016779

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

It's great to hear that the issue is fixed. 🙂 Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day!

Best regards,
Osama

July 30, 2024 at 12:16 pm #16020488

kamilO

Hello,
Can i turn off the HTML tags like "span", "br" etc.
I want to get faster transaliton but this is the worst to trancate everything between HTML tags
Best regards