Hi,
I've been thinking quite a lot to your last message.
I think I finally understand what you tested and explain.
Now, I understand you're saying that the image translation works (= allows to get the media uploaded from the media translation in the translated page instead of the original one) as long as we edit the translation:
- with the CTE or ATE // Where we have to keep the exact same content structure
- or by moving the setting from the original page, to "WordPress Editor" // Required for structure changes
However, it WON'T work as long as, while remaining with the CTE/ATE setting, we click Admin bar:"Edit page" from the translated page to edit the translation.
Just so you know, I used to follow this workflow because with to remain on the ATE as long as possible, before applying individual changes. It just prevents more manual changes afterwards, in case the original content changes.
Then if I need to see the translated page before moving the setting, I display the original front page > move the language from the language switcher.
Then, I have 2 options to edit the page individually:
1. Click Edit translation > Cancel > Be sent back to original page > Move the setting: CTE > WordPress Editor > Click the pencil // Quite a trip
2. Basically click "Admin bar: Edit page" from the translated page.
The second one was obviously the quickest. And since the button was available, and I had no idea it would break something, besides, the risk being moved to the WPML Editor when working from the original page, and crush my individual changes.
Now you say it's not bug.
From my user point of view, It's rather say that your design could be more robust.
I mean, if got there for 2 reasons:
- As explained above, it's quicker
- Basically because I could!
In other words, I feel that, if it leads to issues, this " Edit page" button should just not be available from the translated pages as long as the editor setting hasn't been switched to WordPress Editor.
I tested the workflow you suggested, and indeed:
- The translated image remains when moving the setting to WordPress Editor.
- I can now change the size without breaking the image.
- However, inspecting the HTML, the ID class is still the original one. This, I think, should be fixed.
Now, you say: "The issue I mentioned has been escalated to our developers and will be fixed in the next major version of our plugins." I imagine you're talking about: "The core problem is that the replaced images disappear from Media translation once the translated page is edited with the WordPress editor.
Images are **removed** from the "Media Translation", really? or only from the page after edition/or from the library?
>> Can you elaborate/show me what happens?
I didn't notice it, on our environments, nor your sandbox during these tests. However, I did notice, for years now, images suddenly missing from translations and the library, without really understanding where this came from.
Finally, you say it'll be fixed in the next major versions of WPML.
WPML 4.9 is in beta, and the changelogs makes no mention of that issue.
Media Translation 3.0.0 has been there for 4 months, has no beta yet.
So I feel we'll have to wait.
In the meantime we have 3 fixes for these Media Translations issues.
- Applying the SVG patch you suggested
- Our patch for SVG, that seems to fix many SVG related issues.
- And another one that fixes the 2 issues I mentioned in the current ticket, even when using that guilty workflow.
I guess we'll have to rely on these until you guys have something more robust to offer.