[Resolved] Issues with Theme and Plugin Localization & String Translations
This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is using WPML to translate their website to Arabic. They encounter issues where translations disappear from the cart and checkout pages after scanning for strings in themes or plugins. Additionally, some words are missing for translation, and certain translations do not appear on the front end.
Solution:
We recommended the following steps:
1) Ensure a full site backup is taken. 2) Navigate to WPML>>Support page, and click on the Troubleshooting link. 3) On the Troubleshooting page, perform the following actions in the *Clean up* section, waiting for confirmation after each: - Clear the cache in WPML - Remove ghost entries from the translation tables - Fix element_type collation - Set language information - Fix WPML tables collation - Assign translation status to duplicated content - Fix terms count - Fix post type assignment - Cleanup and optimize string tables - Show custom MO Files Pre-generation dialog box>>Generate .Mo files
Additionally, we advised upgrading to the latest version of WPML String Translation (3.2.16) after a full site backup and clearing all types of caches. This version includes fixes for similar issues.
If these steps do not resolve the issue or if the solution seems outdated, we 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. If the problem persists, please open a new support ticket at WPML support forum.
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.
Background of the issue:
I am using WPML to translate my website, hidden link, to Arabic.
Symptoms:
When I scan for strings in the themes or plugins, some translations from the cart, checkout page, and other pages disappear. Additionally, I can't find certain words or strings to translate, and some translations do not appear on the front end.
Questions:
1- When I go to "Theme and Plugins Localization" and perform a scan for strings in the themes or plugins, some of the translations from the cart, checkout page, and other pages disappear. Could you please assist in resolving this issue?
2- Sometimes, I can't find the words or strings that I need to translate, even after searching for them in the String Translation section. Additionally, when I do find and translate certain strings, the translations do not appear on the front end of the website. Could you help me understand why this happens and how I can fix it?
Welcome to the WPML support forum. I will do my best to help you to resolve the issue.
In some cases, those strings may have been recognized but not yet associated with the String Translation panel for the translation. Please visit WPML>>String Translation and click on the «Translate texts in admin screens » link at the bottom of the page.
Then, search for the missing strings in the Admin Texts Translation screen and check whether they are listed. If so, please add them for translation and translate them.
I appreciate your effort to assist me. However, I believe my main questions were not fully addressed. Let me clarify further:
Translations disappearing after scanning strings:
When I perform a scan for strings in the "Theme and Plugins Localization" section or enable the Auto-register strings feature, some existing translations (e.g., from the cart and checkout pages) disappear, even though they were previously translated and displayed correctly.
Thank you for the updates. Does it happen after upgrading to the latest version of WordPress 6.7 or 6.7.1?
Please try the following troubleshooting steps after a full site backup {mandatory} and make sure the issue exists or not.
1) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
2) On the Troubleshooting page, please click on the following options in the *Clean up* section. Wait for confirmation of processing after each one.
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
- Show custom MO Files Pre-generation dialog box>>Generate .Mo files
Thank you for the updates. Please fill in the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.
Thank you for the login information. One request. We have released a new version of WPML String Translation (3.2.16). It has included the fixes for similar issues. So please upgrade to the latest version after a full site backup and clear all types of caches. Then make sure the bug exists or not.
May you have to visit Plugins>>Add New>>Commerical tab and click on the *Check for updates* button to get the WPML automatic upgrade links of the latest version. This step will help us refresh the installer caches.
Thank you for your help and the update on WPML String Translation. I’ve followed your instructions, and I’m happy to report that the problem is now resolved!
I appreciate your support.
Best regards,
Mansoor
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.