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 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.
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.
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.
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.
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.
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
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
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.
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.