Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 7 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 6 months ago.

Assisted by: Prosenjit Barman.

Author Posts
August 15, 2024 at 12:19 pm #16074261

felixH

Background of the issue:
I'm translating original strings to another wording. For some strings on some pages this works good but for others pages the original string is displayed for like half a second and then replaced with the correct translated one. I can break down that the affected pages use the listeo-core and maybe woocommerce plugin. I have the same issue with other translation plugins too (e.g the Let's say plugin), so it's not primarily a WPML issue, but as we moved to WPML for various reasons I posts the issue here. Link to a page where the issue can be seen: hidden link

Symptoms:
The original string is displayed for half a second and then the correct translated one appears.

Questions:
How can we fix this delay?
Why does this delay appear in the first place?

August 16, 2024 at 8:17 am #16077291

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having. I'm not entirely clear on how you're making these modifications. Could you please clarify the steps you're taking to update the text?

Since you've mentioned that the changes don't appear correctly on some pages, there could be specific elements on those pages preventing the updated text from displaying correctly on the first load. Could you please try opening the page in the Editor, removing the elements one by one, and saving the page after each removal? After each step, check if the issue persists. This might help identify the element causing the problem.

You can also share the link to the page where you're having the issues so that I can also take a look at the issue and suggest on what to do next.

Let me know the update, I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

August 16, 2024 at 11:45 am #16078163

felixH

Thanks for your reply.
The page I'm having the issue is like a cart page. There are no custom content elements involved that I can add or remove via a content elementor.

As I have to change the wording from the default english to another english text that fits better I have set the default string to a other language than english (just Albanian in my case) and then got the option to set an english text for it that is displayed when english language is selected on the website.
That's the way I was told to do in another WPML support post.

I'm wondering why the old default english text is delivered to the user in the frontend at all. Where does the "replacement" take place in the process of the pageload?
I would think that the WPML strings are loaded from the database and then delivered as a replacement for the text directly with all the other content and not that the page is rendered with all original strings and then "updated" again with the translated ones.

The website is currently password protected which is why I can't provide access to you, unfortunately. But you wouldn't see more than what is in the video I provided.

How can we proceed to fix the issue?

Thanks
Felix

CleanShot 2024-08-16 at 13.38.44@2x.jpg
August 19, 2024 at 4:42 am #16082019

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi Felix,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Thank you for the detailed update. The method you're using to update the translation is correct. Since there's a delay in loading the correct translation, could you please try regenerating the translation fields?

- Please go to WPML > Support > Troubleshooting
- Scroll down and you'll see a button named "Show custom MO Files Pre-generation dialog box". Click on that.
- The Page will be refreshed and you'll see a popup containing the "Generate MO Files" button. Click on that.
- Wait till the process gets completed. Once done, clear the caches from your site and browser then check again.

If the issue continues even after regenerating the translation fields, try deactivating all plugins except for WPML, String Translation, and WooCommerce, and then see if the problem still occurs. If this resolves the issue, reactivate the previously deactivated plugins one at a time. After each activation, refresh the page to check if the issue reappears.

Please let me know how it goes. I will be happy to help you need further assistance in this matter.

Best regards,
Prosenjit

August 19, 2024 at 10:40 am #16083062

felixH

Hello Prosenjit

I've regenerated the MO files and also disabled all plugins and tested with cleared cache but as the issue persists.

What's next to fix the issue?

Thanks
Felix

August 20, 2024 at 5:48 am #16085680

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi Felix,
Thank you for the update.

Since the issue persists, we need to determine whether it is specific to your site or a more widespread problem. Please check if you can replicate the same issue in our sandbox. The Autologin link to our sandbox site is given below.

- hidden link

The WPML plugin and its addons are pre-installed on the sandbox. Please complete any remaining setup steps. Then, install the Listeo theme and its add-ons and try to replicate the issue as it occurs on the main site.

If you encounter the same issue on the sandbox site, let me know. I will review it and let you know the next steps.

Please let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

August 23, 2024 at 9:34 am #16097969

felixH

I need a bit more time to setup the page on your system. As I can't install the demopages automatically on two systems simultaneously I have to do it manually.

August 26, 2024 at 5:47 am #16102353

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi Felix,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Thank you for the update. Please take your time to replicate the issue in the sandbox. If you’re able to reproduce it, let me know the steps you took. I’ll start the investigation as soon as I have that information.

Looking forward to your response.

Best regards,
Prosenjit

The topic ‘[Closed] How to fix: Translation string appears with delay. Original string displayed for a moment.’ is closed to new replies.