This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing slow string translations and some languages not being translated, indicated by a cog symbol. Additionally, there are occasional fatal errors, though clearing the WPML cache resolves these temporarily. Solution: If you're experiencing similar issues with automatic string translation in WPML, first ensure that your translation engine supports the language pair you are translating to. You can check supported languages here: https://ate.wpml.org/mt_langs. Follow these steps to potentially resolve the issue: 1. Navigate to "WPML > Settings" and set the Translation mode to "Translate what you choose". 2. Go to "WPML > Support > Troubleshooting" and click on: - Cancel in-progress automatic jobs - Clear the cache in WPML - Fix element_type collation - Synchronize local job ids with ATE jobs - Synchronize translators and translation managers with ATE - Assign translation status to duplicated content - Set language information - Fix post-type assignment for translations 3. After completing these steps, switch the translation mode back to "Translate Everything Automatically" and send the string for automatic translation again. If issues persist, clear caches on your site and browser, and if possible, temporarily disable any optimization/caching plugins. For errors, check the "WPML > Support > Advanced Translation Editor > Error Log" and provide a screenshot if further assistance is needed.
This solution might be outdated or not applicable to your specific case. 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.
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 working on a site under development and trying to set strings to automatically translate using WPML. I want to ensure that automatic translation is 100% working as I move forward with translating new strings.
Symptoms:
String translation takes too much time, and some languages are not translated by the next day, showing the cog symbol. Sometimes a fatal error appears, but deleting the WPML cache resolves the issue.
Questions:
How can I improve the system to ensure automatic translation works reliably?
Hello there!
Thank you for contacting WPML Support.
I understand the issue you're facing. If you're automatically translating the strings and have sufficient credits, the translation should complete without any issues.
However, one important factor that can prevent automatic translation from being completed is the translation engine you're using. If you're using a translation engine that doesn't support translation from the source language to the target language you're translating to, the automatic translation will not complete and will display the in-progress icon. In such cases, you will need to either switch to a different translation engine or manually translate the string.
Please check the link below and make sure that the translation engine you're using supports the language pair you're translating the strings to.
- hidden link
If it does support and the issue persists, Please follow these steps to see if the automatic translation process resumes.
- Please go to "WPML > Settings"
- Change the Translation mode to "Translate what you choose"
- Once done, go to `WPML > Support > Troubleshooting`.
- Click on the following buttons:
-- Cancel in-progress automatic jobs [Scroll down to see this button]
-- Clear the cache in WPML
-- Fix element_type collation
-- Synchronize local job ids with ATE jobs
-- Synchronize translators and translation managers with ATE
-- Assign translation status to duplicated content
-- Set language information
-- Fix post-type assignment for translations
- Once done, go to "WPML > Settings"
- Switch the translation mode to "Translate Everything Automatically" and set it to translate all content on your site.
- Send the string for automatic translation and check again.
Please give it a try and let me know how it goes. I'll be happy to help if you need further assistance in this matter.
Hi,
Thanks, I did this and many translation were done. But now it is the same again, some translation are not done and have the cog symbol. I see that a certain language has difficulties: Portugues do Brasil. So I am waiting and checking for the translations and this is time consuming. Can I do something more? Can you check my account?
Thanks, kind regards
Eric
Based on the information in our system, the pay-as-you-go subscription for credits is active, and there are no blockages on your site in our system. Therefore, there shouldn't be any issues completing the translation. If you're encountering errors randomly, could you please clear the caches from both your site and browser, and then try again? If possible, temporarily disable the optimization/caching plugin on your site and check if the issue persists.
If the issue persists, please go to "WPML > Support > Advanced Translation Editor > Error Log" and capture a full-screen screenshot of the page. Ensure that all columns and recent errors are visible. Then, share that screenshot in your next response so I can investigate the cause of the issue and suggest what to do next.
Hello Eric!
I hope you're doing well. Sorry for the delay in responding due to the weekend.
I'm glad to hear that the String Translation process is working smoothly now!
The error in the ATE error log typically occurs when the XLIFF file containing the translation isn’t recognized by WPML. To resolve this, you can cancel the translation job from **WPML > Translation Management > Jobs** and resend it for translation. Additionally, this issue can sometimes arise if multiple sites are using the same site key. Each site should have WPML activated with a unique site key.
Since you've mentioned that the translation process is working fine now, please keep an eye on the ATE error log to see if similar errors continue to appear regularly. If so, please let me know and I'll take a closer look and assist you further in this matter.
If you’re not reusing site keys, there’s no need to worry! Everything should function correctly on your site. The ATE error log is generated directly by the ATE server, and unfortunately, it cannot be removed. For your information, if you encounter any ATE issues, the error details will appear at the top of the log list.
I hope you can understand. Feel free to let me know if you have any other queries. I'll be happy to help.