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 6 replies, has 2 voices.
Last updated by arnoP-3 1 year, 8 months ago.
Assisted by: Kor.
Author | Posts |
---|---|
May 17, 2023 at 1:04 pm #13664557 | |
arnoP-3 |
Hello, We have hundreds of posts that we're gradually translating from English to German. Currently, most links on German posts still point to English posts because there is no translation yet. When a new post is translated, all links on German posts pointing to the English URL should now be changed to the German URL. I was looking for the quickest way to do this and found "Translate Link Targets" in the WPML settings. That might be the best option, but I can't find any documentation. I'd like to know how it works, what exactly it does, and when to use it, before I execute such an automated scan that will "magically" fix things. It might be risky, it may not adjust all links? Kind regards, |
May 18, 2023 at 2:13 pm #13672707 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hi there, Thanks for contacting WPML support. I'd like you to know that the "Translate Link Targets" in the WPML settings will only work when the page is translated using the "Advanced Translation Editor/WPML Editor". Also, sometimes it will not work on page builder links. You can give it a try but please be sure to always back up the site before performing options like this one. Let me know how it goes. Thanks! Kor |
May 18, 2023 at 3:52 pm #13673515 | |
arnoP-3 |
Hi Kor, We only use the Advanced Translation Editor, so that's no problem. But, as this doesn't always work and is risky enough to run a backup first, it does not sound like a feature that our editors can use freely. Am I missing an option to translate internal links? As far as I know, we have to: 1. Translate each link manually inside the Advanced Translation Editor Is everyone copying and pasting URLs into the Advanced Translation Editor all the time? Am I missing something? It's very time-consuming. Kind regards, |
May 18, 2023 at 4:10 pm #13673595 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hi there, Thanks for your reply. We always suggest our clients to backup the site if they're trying some of the options in WPML(not just the "Translate Link Targets" option) so that if something went wrong, they can restore the site and avoid complaints. If you want to try that option, you can clone the site to another staging site and then test it. As for the translating links in the Advanced Translation Editor, you can refer to this blog posts https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/ . As mentioned in this article https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/ "The Advanced Translation Editor hides URLs, shortcodes, and HTML attributes by default to prevent automatically translating an element that might break something with your site. " I hope this helps. thanks! Kor |
May 18, 2023 at 4:24 pm #13673647 | |
arnoP-3 |
Hi Kor, Yes, I know how to search for links and how to translate them. But if I translate the link "www.example.com/page" to "www.example.com/de/page" in post A, and then start my translation of post B, I have to do it all over again. WPML doesn't store the link translation like it does for everything else. I'm not sure why it works like that. It takes a lot of extra time for our translators. Also, WPML should be able to suggest the translation of "www.example.com/page" automatically if that page had been translated already. Thanks, |
May 18, 2023 at 4:29 pm #13673659 | |
Kor Supporter
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Hi there, Thanks for your reply. I don't think that would work. As mentioned in the "Translate Link Targets" option "Adjust the links in the posts and strings to point to translated content" . It only points to the translated content(post/page). So you need to complete the translation for hidden link and it will be pointed correctly when you initiate that option. Let me know how it goes. Thanks! Kor |
May 21, 2023 at 8:12 am #13683935 | |
arnoP-3 |
Ok, I will give it a try once I have translated a new batch of content. |