Skip Navigation

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.

This topic contains 3 replies, has 1 voice.

Last updated by sandyD-4 2 years, 6 months ago.

Author Posts
November 16, 2022 at 7:59 pm #12476317

sandyD-4

hi, i'm trying to translate medias with media translation and i'm facing two issues (one with pngs one with svgs)
1- first svg: i managed to upload svgs with a small hack to wp, and it works with media uploader as well as with the WPML media translation editor (but not on frontend).
in this page, the original english one hidden link i'm trying to translate the bottom image with the values. I did so in wpml media translation editor, and it uploaded correctly, the backend even shows the correct french image associated with the english image, but the frontend doesn't display it at all like you'll see here hidden link i analyzed the page and it seems that wpml tries to display the picture from the wrong location: hidden link you'll see that the url doesn't contain the month or year, which leads to an empty space, however if i manually adapt the url to the correct one with year and month, the french picture shows correctly: hidden link so it's not an issue linked to svg as it's been uploaded correctly.

2- png: hidden link
similar issue except instead of not displaying anything, it displays the english image (the one at the bottomish with the dotted map and big color circles on it, it's still showing the english one even though i updated it in the media translation editor and the editor show me the correct associated french image, but the frontend show me the english one.

can you please help me?

November 17, 2022 at 3:57 pm #12483975

sandyD-4

hi
it seems the second issue, with pngs, just solved itself overnight, i have no idea how, i guess it was a caching problem.
however the first issue with the svgs is still not solved.

November 17, 2022 at 4:00 pm #12483995

sandyD-4

more informations, the issue seems to replicate itself everytime i use svgs, they are correctly uploaded to the media library because when i manually change the url by adding the year and month it's indeed there, but the frontend show a url without the year and month like explained in the initial post.

November 17, 2022 at 4:10 pm #12484101

sandyD-4

My issue is resolved now.
i found it was a compatibility issue with svg support plugin, i did as told here
https://wpml.org/errata/svg-support-activating-wpml-media-strips-uploads-folders-from-svg-image-url/
and it works now