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

Last updated by Pekka jormakka 1 day, 18 hours ago.

Assisted by: Bruno Kos.

Author Posts
January 2, 2025 at 9:45 am #16557947

Pekka jormakka

Background of the issue:
I am developing a site where the default language is Finnish. I am trying to translate a page created by The Events Calendar plugin: hidden link. I previously used the Loco Translate plugin to translate phrases from Finnish to English, but I disabled it after installing WPML.

Symptoms:
Many parts of the page created by The Events Calendar plugin are still in English, and I cannot find where to translate them.

Questions:
How can I translate the page created by The Events Calendar plugin using WPML?

January 2, 2025 at 10:07 am #16558047

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Here is the ticket, let me know if https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#enable-auto-register-strings worked.

January 2, 2025 at 8:14 pm #16559946

Pekka jormakka

I tried auto registeration and it translated almost immediately all English phrases on that page except one (Seach for..). Then I stopped auto registeration and everything was fine but when I revisited the page later everything was back to previous state, all phrases again in English 🙁 Now I have tried auto registeration again for much longer time than last time but it doesn't find those phrases any more..

January 3, 2025 at 8:21 am #16560423

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you please provide me with the debug information, so that I can get a better idea of your setup?

https://wpml.org/faq/provide-debug-information-faster-support/

Enter this data into the Add debug info box below.

Also, can you check this URL and try this workaround?
https://wpml.org/errata/wp-6-7-translations-not-loaded-for-the-events-calendar-plugin/

January 6, 2025 at 11:02 am #16566046

Pekka jormakka

Hi! Coild you check first if you found a solution from the debug information. I don't have access to those (or any) files in your other proposal.

January 7, 2025 at 9:53 am #16568733

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Debug information only provide us information about your site setup (plugin versions, WPML settings), etc.

Do you mean that you do not have /wp-content/plugins/the-events-calendar/src/Tribe/I18n.php file, or?

Because if using the above plugin it should be there.

Or you don't have means (through FTP e.g.) to access these files?

January 7, 2025 at 10:32 am #16568966

Pekka jormakka

Yes, I mean I don't have access to any files. I'll need to ask owner of this WMPL account to try: https://wpml.org/errata/wp-6-7-translations-not-loaded-for-the-events-calendar-plugin/ if this is what is needed?

January 7, 2025 at 1:45 pm #16569789

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I understand - yes, you need to ask the site owner to try that workaround.

1. Open the file located at:

   /wp-content/plugins/the-events-calendar/src/Tribe/I18n.php

2. **For line 284:**

- Find the following code:

     unload_textdomain( $domain );

- Replace it with:

    unload_textdomain( $domain, true );

3. **For line 342:**
- Find the following code:

unload_textdomain( $domain );

- Replace it with:

unload_textdomain( $domain, true );
January 8, 2025 at 2:01 pm #16573830

Pekka jormakka

Hi, changes to files are now done. What next, should I try auto registeration again?

January 9, 2025 at 12:38 pm #16577740

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

If the strings are translated, changing the above should do.

It looks like they show now properly, or? This is what I see on hidden link

now.jpg
January 10, 2025 at 8:13 am #16580532

Pekka jormakka

Yes, translations are now correct. They didn't change for a while, probably were still cached somewhere 🙂 Thank you!