Skip Navigation

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

Problem:
The client has translated their entire website into Arabic using WPML, but some words are not being translated on the frontend, even though they have been translated in WPML.

Solution:
First, we recommend scanning the WPResidence theme for strings:
1. Go to WPML > Theme and Plugins localization in the WordPress Dashboard.
2. Select the "WPResidence" theme and scan for strings.
3. After the scan, navigate to WPML > String Translation and search for the untranslated string.
4. If found, click on the "+" icon to translate it.
5. Clear the site's caches and check the frontend.

If the translation still doesn't appear, search for the text in the Admin Screen using the instructions in our documentation:
- Finding strings that don’t appear on the String Translation page

If the issue persists, it may be due to missing MO files. To generate MO files:
1. Navigate to WPML > Support > Troubleshooting.
2. Click on the "Show custom MO Files Pre-generation dialog box" button.
3. Click the "Generate MO files" button.

We have already applied this solution to the client's site, and the translations should now display correctly.

If this solution doesn't seem relevant to your issue, please open a new support ticket with us.

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

Last updated by Prosenjit Barman 1 year ago.

Assisted by: Prosenjit Barman.

Author Posts
November 16, 2023 at 8:49 am #14823017

masterP

Hello,
I have translated the entire website into Arabic, but I am facing an issue with translating some words that do not respond to translation, even though I have translated them in your add-on. The attached image illustrates what I mean.

My website

hidden link

123.png
November 17, 2023 at 11:54 am #14861831

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thanks for contacting WPML Support.

I checked one of the listings and it seems the text that you're talking about is static and belongs to the WPResidence theme. Would you please try the following and check if that helps to solve the issue?

- Please go to "WPML > Theme and Plugins localization" from your WordPress Dashboard
- Select the "WPResidence" theme and scan for strings.
- Once the Scan is completed, please go to "WPML > String Translation" and search for the string that is not showing translated.
- If that text appears in the result and remains untranslated, please click on the "+" icon and translate it.
- Once the text is translated, clear the caches from the site and check the frontend.

If the translated text still not appearing on the frontend, please try searching for the text in the Admin Screen by following the instructions in the documentation provided below.

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#translate-admin-and-settings-strings

If the text appears there, register it for translation and translate the string from String Translation.

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

Best regards,
Prosenjit

November 21, 2023 at 8:50 am #14883387

masterP

Thank you for your help.

My issue is I have translated the entire website, but I'm facing an issue with some words that are not getting translated when switching to the Arabic language, they remain in English.

However, when I activate the "Auto-register strings" option, the words get translated. But, when the activation time is over or when I deactivate it, the words revert to English.

Thank you.

1.jpg
3.png
2.png
November 22, 2023 at 3:37 am #14892579

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi There,
Thank you for the insightful update.

If enabling the "Auto Registration of String" solves the issue, it is possible that the Theme's translation file is not loading Automatically. Will you please try the following and check if that helps to fix the issue?

- Please go to "WPML > Theme and Plugins Localization"
- Make sure the option "Automatically load the theme's .mo file using 'load_textdomain'" is activated
- Within the 'Enter textdomain:' box, add the text domain of the theme you're using. It should be 'wpresidence'
- Save the changes.

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

Best regards,
Prosenjit

November 22, 2023 at 9:10 am #14894157

masterP

Welcome,
thank you for your help.

This solution did not fix the problem. Please what can I do to fix it, because I am trying every day to fix the problem and I have not found any solution

November 23, 2023 at 4:11 am #14903495

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thank you for patiently following the instructions.

Since the issue persists, a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

November 24, 2023 at 7:06 am #14913413

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There,
Thank you for sharing the access information.

I have checked by applying all the possible solutions but unfortunately, none seems to be solving the issue. To investigate the issue further, I've created a copy of your site and will deploy it on my development environment. I will also escalate this issue to our 2nd tier team if required.

I will inform you as soon as I have more information on this. For your information, this ticket will be kept open.

I appreciate your patience and cooperation in this matter.

Best regards,
Prosenjit

November 27, 2023 at 6:39 am #14926569

Prosenjit Barman
Supporter

Languages: English (English )

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

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

I have carefully examined the issue in my development environment and am pleased to inform you that I've found the root cause and also the solution for this issue.

The translations aren't appearing on the Frontend because some MO files, which hold the compiled translations, are missing from the site. As soon as I generated the MO files, the issue was immediately resolved. Please check this screenshot: hidden link

I generated the MO files using the following steps:
- Navigated to "WPML > Support > Troubleshooting" in the site's dashboard.
- Found and clicked on the "Show custom MO Files Pre-generation dialog box" button.
- Then, I click the "Generate MO files" button to initiate the process.

I already have applied the solution on your site and the translations are now showing correctly.

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

Best regards,
Prosenjit

November 27, 2023 at 9:16 am #14928165

masterP

Thank you for your help