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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | 9:00 – 14:00 | - |
- | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | 15:00 – 18:00 | - |
Supporter timezone: Asia/Dhaka (GMT+06:00)
This topic contains 8 replies, has 2 voices.
Last updated by Prosenjit Barman 9 months, 2 weeks ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
May 8, 2024 at 10:06 pm #15607961 | |
herveJ-2 |
Hi there, I'm trying to translate the alt tag of an image loaded into an ACF image field and cropped with the Image Aspect Ratio Crop Field extension. The ACF image field is in "Copy once", I've written the alt tag in the master language "FR" in the page: hidden link and I'm trying to translate it into "NL" via Media Translation: hidden link Unfortunately the meta doesn't translate into FR on the front, it stays in NL: hidden link Page is here : hidden link |
May 9, 2024 at 7:53 am #15609068 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I understand the issue you're having and will try my best to assist you in this matter. Please be informed that to translate the image meta information such as caption/alt text/description, it is not required to translate them from Media Translation. They should appear in the translation editor at the time of translating the post/page containing the image. Would you please try the following and check if it helps in solving the issue? - Please go to WPML > Settings and scroll to the "Media Translation" section. Please let me know how it goes. I will be happy to help if you need further assistance in this matter. Best regards, |
May 9, 2024 at 8:06 am #15609140 | |
herveJ-2 |
Hi there, Thanks for the answer. This setting was already good: I followed your procedure above precisely, unfortunately : Best regards, |
May 10, 2024 at 3:46 am #15612529 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Since you're using a custom theme, it is possible that WPML hooks haven't been integrated to filter language-specific content. If you're dealing with translated media and want the content to display correctly, the media information should be processed through the "wpml_object_id" hook to ensure the right image loads for each language. You can find more details about this hook at the following link: - https://wpml.org/wpml-hook/wpml_object_id/ To test if the media translation is functioning as intended, could you try uploading a different image for the French version from Media Translation and see if it appears correctly on the French page? If the original image still appears in the French version, it indicates that you need to adjust the code to process the image information through the "wpml_object_id" hook. Doing so should allow the translated image to load correctly, along with the associated information in other languages. Also, to verify if the image translation you added through the Media Translation is correctly associated with the uploaded translated image, follow these steps: - Navigate to Media > Library and select the default image. When you switch languages, the page should display the translated image along with its corresponding translated information. This will confirm whether the translation has been properly linked to the image. Please let me know if the information above helps or if you need further assistance in this matter. I will be happy to help. Best regards, |
May 10, 2024 at 5:37 am #15612587 | |
herveJ-2 |
Hi there, Thanks for you reply. I tested it: I think the problem stems from the fact that the ACF image field was initially set to "Copy" - we created the NL pages, and then translated them into FR. We then changed the setting for this ACF image field to "Copy once". On these images, we can't change the FR meta. |
May 10, 2024 at 6:56 am #15612738 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Since Dutch is the source language of the page, are you making updates to the Dutch page first and then applying those changes to the French translation? It's important to follow this sequence because Dutch remains the primary language for the French page until you unlink the French page from its Dutch translation and reverse-translate from French back to Dutch. Even when the field is set to copy, the translated image should appear in the translated version with the correct meta information. If the problem continues despite following the steps above, a more detailed examination will be necessary to identify the root issue. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it. Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you. IMPORTANT Looking forward to your response. Best Regards, |
May 14, 2024 at 7:13 am #15623494 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi There, I logged into your site, but the backend is taking a long time to load. I tried to edit the page you created, but it is not opening in the editor and appears broken. Please check hidden link">this screenshot for a better understanding. The issue may be due to a conflict between plugins. Could you please deactivate all plugins except for WPML and its add-ons so that I can access the backend without any issues? In this way, I can continue the investigation efficiently. Looking forward to your response. Best regards, |
May 14, 2024 at 7:21 am #15623507 | |
herveJ-2 |
Hi ! Yes, we have a conflict between Image ratio and WPML. My developer colleague was working on it this morning, which is why you had trouble connecting. It's OK now, can you try? Thank you, |
May 15, 2024 at 3:49 am #15627512 | |
Prosenjit Barman Supporter
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hi! To investigate, I opened the "Test Image alt tag" page in the Editor and added an Alt text to the image. Then, I selected the "WPML Translation editor" and proceeded to update the translation. In the Translation editor, the Alt Text appeared for translation. Please check this screenshot: hidden link. After adding translations for the texts, I opened the French translation in the WordPress editor to see if the Alt text was added to the image in the translated version. I noticed that the translated Alt text is showing correctly there. Please check this screenshot: hidden link. So, on the page you created, everything appears to be working correctly. If you're manually translating the content using the WordPress editor, you'll need to adjust the image meta manually, as it won't be copied to the translation. However, if you use the WPML Translation Editor, the image meta will appear in the editor during translation and you'll be able to add the translation for the meta properly. The translated information will also appear properly if you open the translation in WordPress editor. I hope you can understand. Please feel free to let me know if you need further assistance in this matter. I will be happy to help. Best regards, |
The topic ‘[Closed] Alt text Media translation / Image ratio Crop’ is closed to new replies.