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 7 replies, has 2 voices.

Last updated by alexanderA 1 month, 2 weeks ago.

Assigned support staff: Riffaz.

Author Posts
September 1, 2019 at 9:16 am #4492283

alexanderA

I want to create a new post in my default language (English), with a featured image, and a second image in the body content. The images will have English alt text. I then want to translate this post into French, and ensure the images in the post have French alt text instead of English alt text. What is the proper and most efficient way to do so? Here the steps I currently take, and the specific issues I encounter:

1. Upload images to WordPress.
2. Add EN alt text to each image.
3. Create new EN post, and insert images into post.
4. Publish EN post.
5. Duplicate EN post into FR (via WPML-->Translation Management).
6. Open FR post for editing and click 'Translate' independently.
7. Publish FR post.
8. At this point, the images in the FR post still have EN alt text.

I tried, after step 2, to open the image for editing in WordPress, change the language to FR, and add the FR alt text. But I couldn't get that to work either--I eventually ran into the same issue.

Thanks.

September 1, 2019 at 1:07 pm #4492527

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hello,

Thank you for contacting WPML support.

You are using WPML Media.

So if you want to translate Alt Texts and Titles, you should:
- Go to Media Library
- In the top bar menu, select your language of interest
- Select an image and edit its attributes.

Actually when you change language on the top menu, you are also changing language for Media library, so, every change you make in your images will be reflected in your selected language.

You can find more information here:
https://wpml.org/documentation/getting-started-guide/media-translation/

Regards,
Riffaz.

September 2, 2019 at 10:58 am #4496413

alexanderA

OK thanks for those instructions. So the next time I create a new EN post, add images to it, add alt text to it, and want to translate the post/images/alt text into FR, what are the proper steps, and the proper order? Is it:

Upload featured image to WordPress.
Add EN alt text to featured image in media library.
Add FR alt text to featured image by following these instructions:
- Go to Media Library
- In the top bar menu, select FR as the language of interest
- Select an image and edit its attributes.
Create EN post.
Add EN featured image to post.
Save EN post.
Duplicate post into FR.
Save FR post.

Are those the correct instructions? Or after duplicating the post into FR, do I need to remove the featured image and add the FR featured image?

Thanks.

September 2, 2019 at 1:21 pm #4497311

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Upload featured image to WordPress.
Add EN alt text to featured image in media library.
Add FR alt text to featured image by following these instructions:
- Go to Media Library
- In the top bar menu, select FR as the language of interest
- Select an image and edit its attributes.
Create EN post.
Add EN featured image to post.
Save EN post.
Duplicate post into FR.
Save FR post.

- This is correct

Or after duplicating the post into FR, do I need to remove the featured image and add the FR featured image?
- no need to remove and add back

Regards,

September 4, 2019 at 2:29 pm #4512015

alexanderA

My issue is resolved now. Thank you!

September 8, 2019 at 7:37 am #4530701

alexanderA

I need to re-open this. I followed your instructions, but they are still not working as expected. Here is what I did:

Upload featured image to WordPress.
Add EN alt text to featured image in media library.
Add FR alt text to featured image by following these instructions:
- Go to Media Library
- In the top bar menu, select FR as the language of interest
- Select an image and edit its attributes.
Create EN post.
Add EN featured image to post.
Save EN post.

Once I did so, the image in the EN post possessed the EN alt text, as expected (screenshots:
hidden link).

I then carried out these steps:

Duplicate post into FR.
Save FR post.

Once I did so, the image in the FR post still possessed the FR alt text (screenshots: hidden link). What is occurring here? Per your instructions, that image should now possess the FR alt text. To reiterate, before creating the posts, I added the EN alt text to the image in the EN media library, and added the FR alt text to the image in the FR media library.

This issue is becoming quite annoying, as it seems the only way to ensure the correct alt text is to delete the image from the post, and re-insert it.

Thanks.

September 8, 2019 at 7:47 am #4530737

alexanderA

Actually, I think i see the source of the issue. For some reason, when I added the FR alt text and saved, the FR alt text never really saved--the EN alt text remained. When I went back and PROPERLY saved the FR alt text, then my issue was resolved. I'm not sure if I was at fault for the alt text not properly saving, or if it is a bug with WPML. Let me monitor that for a bit. Consider this resolved for now.

September 12, 2019 at 9:14 am #4559741

alexanderA

Hello. Can I re-open this ticket? I am still seeing an issue.