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.

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

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 6 replies, has 2 voices.

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

Assisted by: Osama Mersal.

Author Posts
February 20, 2023 at 4:16 pm #13072257

davidO-15

String translations are currently not working on site ID 1 for our client Bunk. They only work when (Auto register strings for translation) is activated OR the site is another site ID for example:

1. hidden link Does not work
2. hidden link Does work

Please note note that we have already tried the following the resolve the issues:
1. Remove / rescan string translations
2. Disable all plugins / use default theme
3. Followed advice from this ticket https://wpml.org/forums/topic/string-translation-works-only-when-auto-register-strings-for-translation-is-on/

Many thanks,

Tom

February 21, 2023 at 7:31 am #13075779

Osama Mersal
Supporter

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

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

Hi Tom,

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

Could you please try the following steps?

1- Go wp-content folder on the problematic site
2- Rename the languages folder to "languages.old"
3- In your dashboard, go to WPML-> Support-> Troubleshooting
4- Click on the "Show custom MO Files Pre-generation dialog box"
5- Go to String Translation and translate any string
6- Clear the cache and check the front end

❌ Please backup your database and website ❌

Kindly let me know if the above steps helped you fix the issue.

Best regards,
Osama

February 21, 2023 at 2:20 pm #13080157

davidO-15

Hi Osama,

Thank you for your prompt reply. We've tried doing this and unfortunately there is no change. In face all the string translations were all already set within the string translation editor even after regenerating the languages folder data as instructed.

Let me know what our next steps are as this issue is preventing this site from going live.

Many thanks,

Tom

February 21, 2023 at 2:23 pm #13080197

Osama Mersal
Supporter

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

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

Hi Tom،

Thanks for your update. Could you please give me an example of the problematic strings to check them?

Also, 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 if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason 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.

Thanks,
Osama

February 23, 2023 at 7:41 am #13095225

Osama Mersal
Supporter

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

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

Hi Tom,

Thanks for the access details. Could you please let me know if this issue happens only in Theme strings?

If yes, please activate the Twenty Twenty-One theme and check if the issue persists.

Thanks for your cooperation

Best regards,
Osama

March 2, 2023 at 3:46 pm #13156949

davidO-15

Hi Osama,

We've been trying to fix this on our side and have come across something interesting. The problem seems to have been resolved. However, we haven't needed to do this for our other sites with the same setup.

Adding the domain to this list in Theme and plugins localization did the tirck
1) These settings are disabled on Amsterdam and Utrecht and yet they work
2) Doesn't seem the most futureproof solution if someone decides to define a new domain

Screenshot 2023-02-27 at 15.36.36.png
March 2, 2023 at 5:28 pm #13157757

Osama Mersal
Supporter

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

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

Hi,

I'm not sure why you need these settings enabled on this specific site, but please note you use a custom theme, so it's expected to face some issues.

However, it's great that you found a workaround to fix the issue.

Best regards,
Osama

The topic ‘[Closed] String translations not working on main site’ is closed to new replies.