[Resolved] Complete translations - issue with formatting markers
This thread is resolved. Here is a description of the problem and solution.
Problem: You are translating text in the classic editor and notice that although all fields are translated (indicated by blue bars), the translation completion percentage drops from 100% to 97% or 94% after saving, without any translations being removed. Solution: We have investigated this issue and our second-tier support team has implemented a fix. We recommend you check if the problem persists on your site. If you still notice the translation completion percentage dropping after saving, it might be due to a specific configuration or a temporary glitch.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your 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. Additionally, if the problem persists, please open a new support ticket at WPML support forum for further assistance.
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'm translating the text in the classic editor on hidden link. All fields have been translated (all bars are blue, no orange indicating missing translations). In between saving translations, the level of completion goes to 100%, then drops down to 97% or 94%. No translation has been removed. All formatting markers have been applied. I have triple checked all translation fields. "php_value max_input_vars 10000" has been added to .htaccess.
Symptoms:
The level of completion goes to 100%, then drops down to 97% or 94% after saving translations. I can't save the translated page.
Questions:
Is there a way to bypass the formatting markers so this doesn't happen anymore?
Can you please give us access to your site and tell us how to see this problem?
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
I could solve this issue by switching to the previous version of the Advanced Translation Editor. You can do that by clicking the gear icon at the top right corner. Please see the attached screenshot switch-to-previous-ate.jpg. After switching to the previous version of the Advanced Translation Editor, I could see that one link was marked as untranslated. However, this was an internal link, and WPML knows how to handle internal links in translation without marking them as complete. So, only clicking on the Complete Translation solved the problem. Please see the attached screenshot complete-trans.jpg. Now, the English page is published.
hidden link
And its translation is complete. Please see the attached screenshot en-comlpete.jpg.
In addition to the above, I'm also escalating this issue to our second-tier supporters. They will check the reason for this and, if needed, will escalate it to our developers.
In addition to my replies above, our second-tier supporter asks the following.
Did this problem happen the first time you translated the page or the first time you completed it, and when you returned to the translation, you saw that it was only 97%?
Thank you for showing me a solution to this issue.
In reply to your second-tier supporter's question:
The problem happened on the very first attempt of translating the page. I noticed the % going to 100%, then dropping to 97% or 94%. All fields were filled and saved, but the page wouldn't save and complete as a whole.
I continued working on the site today, and again it wouldn't let me mark the page as complete. It said something along the lines of 'make sure all fields have been saved'. I double checked that, and all fields had indeed been filled and saved when I got the error message.
With your suggestion I am now using a previous version of the translation editor. This seems to be working fine for now, so I'm going to stick to that for the time being.
I'll try the newer version of the translation editor later this week to see if the problem happens again.
With the new version of the Advanced Translation Editor, the option to edit the link is also shown when editing a segment with links. Please see the attached screenshot. If you miss inserting the link in the field, a problem like the one you are facing can occur. The issue has been escalated to our developers. They will improve usability, and in the next version of the Advanced Translation Editor, users will be able to see if they missed a translation of a link. We will update you when the version with the fix is released.