Skip Navigation

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

Problem:
The client is experiencing issues with string translations not working as expected on their Events Calendar Page when translating from English to French. Specifically, translations revert back to English after the time expires or when the option 'Look for strings while pages are rendered' is disabled. Additionally, WP_DEBUG logs indicate that translation loading for several domains was triggered too early.
Solution:
We recommend enabling WP DEBUG to identify any relevant errors. This issue may not be directly related to WPML but could be due to how the theme or plugins handle text domains following recent updates in WordPress 6.7. Here are the steps to follow:
1. Enable WP DEBUG by following the instructions here: https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
2. Check for errors similar to those described in the WPML errata here: https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
3. Contact the support teams of the affected plugins for updates on resolving these issues.
If these steps do not resolve the issue or if you need further assistance, 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.

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.

This topic contains 3 replies, has 0 voices.

Last updated by Andreas W. 1 week ago.

Assisted by: Andreas W..

Author Posts
February 7, 2025 at 3:16 pm #16680406

cliffA

Background of the issue:
I am trying to translate text on a website from English to French. Specifically, on the Events Calendar Page, there is text at the bottom of the calendar that says: Blue = OCO Event. This issue is discussed in the forum topic: https://wpml.org/forums/topic/string-translations-are-not-working-3/. The issue can be seen on this page: hidden link.

Symptoms:
String translations are not working as expected. When 'Look for strings while pages are rendered' is selected, the translation works, but it reverts back to English after the time expires or when the option is disabled.

Questions:
Why do the translations revert back to English after the time expires?
How can I ensure the translations remain in French without enabling 'Look for strings while pages are rendered'?

February 7, 2025 at 11:46 pm #16681483

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

This might not be a WPML issue, but an issue about the theme or a specific plugin.

The latest major release of WordPress changed the way how text domains are being loaded and it might be that your theme or one of your plugins had not yet been adapted to this change.

Please enable WP DEBUG and revise if you find an error similar to the one in this errata:
https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/

How to enable WP DEBUG:
https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/

If you need assistance with this, please let me know.

Best regards
Andreas

February 8, 2025 at 1:46 am #16681578

cliffA

Yes, I am seeing this error in the WP_DEBUG logs for:

Translation loading for the

event-tickets

domain was triggered too early.
Translation loading for the

relevanssi

domain was triggered too early.
Translation loading for the

the-events-calendar

domain was triggered too early.
Translation loading for the

gravityforms

domain was triggered too early.
Translation loading for the

wp-user-manager

domain was triggered too early.

Which all of those plugins including WPML as well as WordPress is the latest version.

February 8, 2025 at 1:57 am #16681582

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for the detailed information.

Those errors usually mean that those plugins did not yet include the text domains in the way they should be done in WordPress 6.7.

I suggest you reach out to the respective support teams and ask about when an update will be available that will solve this issue.

If any further assistance will be needed from our side, please let us know.