Home›Support›English Support›[Resolved] some code elements that WPML converts to "wmpl_curved" elements, making it impossible to finish the translation
[Resolved] some code elements that WPML converts to "wmpl_curved" elements, making it impossible to finish the translation
This thread is resolved. Here is a description of the problem and solution.
Problem: You are using Advanced Translator to translate a page and encounter an issue where fields containing code elements are converted to "wmpl_curved" elements, and you cannot save these fields, preventing the completion of the page translation.
Solution: It was a temporary issue which our ATE/Dev teams fixed swiftly and has already been rolled out. If you're still experiencing, please clear cache, cancel an existing job and retry.
If this solution becomes irrelevant due to updates or does not apply to your case, we recommend opening a new support ticket. We also advise 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.
For further assistance, please visit our support forum 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.
I am using Advanced Translator to translate a page. There are a couple of fields where there are some code elements that WPML converts to "wmpl_curved" elements, which is fine! However, I cannot save those fields, making it impossible to finish the translation of the entire page due to an error with these fields that contain code elements.
Reference to our recent chat, I had a clue, can you please quickly check this and see if it helps in fixing the problem?
- Go to WPML -> Settings -> Custom Fields Translation
- Find the field "finques-grid-card__definition"
- And set it to "Don't translate", "Copy" or "Copy once", instead of "Translate".
- Then make change in your content in default language (i.e. the test page).
- Save.
- Update Translation and see if that code doesn't appear in ATE (which shouldn't be there however).
Please let me know, meanwhile I am working on my test site.
In fact, I am not sure what "finques-grid-card__definition" custom field has to do with it. It is a custom field with some basic text that needs to be translated at some point. So converting it to "Copy", "Copy once" or "Don't translate" wouldn't be an option, anyway.
However, I have tried it, and this field has nothing to do with the issue!
The code that cannot be translated is some dynamic data added to data-attribute of a couple of elements. The dynamic data is pulled from a Metabox color picker field. Maybe this information helps while figuring this out!
Thank you for the updates. I was suspecting "finques-grid-card__definition" to contain that code definition information but it is clear now that this field is irrelevant, thanks again.
I am working on my sandbox site and trying to reproduce the problem. I'll update you about further progress in the morning.
I've setup my sandbox site with fresh WPML and Bricks theme, where I've also tried to reproduce the problem.
But unfortunately I can not reproduce the issue. I've used some colors for text, as well as, the styling but those do not appear in the ATE.
Can you please go to the sandbox site hidden link (one-click login) and try to reproduce the problem? While you do it, please note down the exact steps, so we can then try again.
1. Create a New page.
2. Edit with Bricks.
3. Add some content, like a Section, a Container, and some text.
4. Add data-attribute to the Section. Styles > Attributes. For testing purposes, I have added Name = Style, Value = background: {post_title}; color: {post_id}; font-weight: {post_slug}. But in my case, the color values are dynamic data from a Metabox color picker on each Post. But we need to have dynamic data in order to reproduce the issue, so I have chosen {post_title}, {post_id} and {post_slug}, even though it makes no sense.
5. Save and publish.
6. Go to WordPress and add a translation from that new page. And here you are stuck with a field that cannot be saved (see screenshot)!
A couple of important things to take into consideration:
- The issue only happens if the field has 3 or more of that <wpml_curved> elements. When I was trying to reproduce the issue if I just added 1 or 2 dynamic data tags, the issue didn't appear. It started happening when the third one was added.
- Also, this not only happens with data-attributes. I also have a page with a form that have 3 dynamic data tags on a field, and that field have the same issue in ATE.