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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 11 replies, has 2 voices.

Last updated by Shekhar Bhandari 1 year, 5 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
November 27, 2023 at 4:57 pm #14933113

Michael Briel

I am trying to: Simply translate a page with some buttons and text links on it

Link to a page where the issue can be seen: (Username "test", Password "icciamexcellence")
1) hidden link
2) hidden link
3) hidden link
4) hidden link

I expected to see: ALL text links and button links to be available for translation - and all in the same way too, if possible.

Instead, I got:
On the first page: The text links were available for translation (the boxes above "Environment, Social, Governance") - they're a simple html text link, made "big" only by css. Below that there's three buttons which are supposed to have the exact same links - but they didn't show up for translation and thus link to the wrong language. And below THAT is a "Schicken Sie uns Ihre Anfrage" - Button that DOES show up as translatable and thus links correctly to the German contact page.

ON page 2 (Environment) NONE of the links showed up for translation except the Contact link at the bottom.

oN Page 3 everything works correctly once again.

And on page 4 one link (Environment) works and the other (Social) doesn't.

Oh - and it would be SO nice if WPML made up it's effing mind where and how Links are displayed in the Translator - especially Buttons: Sometimes they're amongst the normal text bits as "core/button" fields and sometimes they only appear if you search for "https"!

This was supposed to make things easier to handle and speed up the workflow on the page, since soon even more languages will be added. But so far WPML does everything BUT that. On the contrary. Due to it's inconsistent handling of links (not to mention Advanced Custom Fields) we'll basically have to correct like every second "translated" page with Gutenberg afterwards.

Let's see if you can help this time, otherwise I'll strongly suggest returning to Polylang. 🙁

November 27, 2023 at 5:17 pm #14933323

Michael Briel

PS: SInce my customer wants the new pages on the DEV server live I'll now have to correct the wrong links by hand - so in five minutes you won't see the wrong links on the pages I sent you any more.

Doesn't mean the problem went away, it just means we did a workaround for this shite.

November 29, 2023 at 4:33 am #14946013

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello Michael,

Welcome to WPML support. I'm here to assist you.

In essence, there are two types of links: internal links and custom links. Internal links are those that reside within the website, while custom links lead to external destinations.

With WPML, there's no need to translate internal links manually because if translations exist, WPML will automatically incorporate the correct link translations. Consequently, you won't find this option in the WPML editor, as it's unnecessary.

However, if you're using an advanced translation editor, you can still locate and modify internal links. You can find more information on this in the following resources:

- https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/#main-features-of-the-advanced-translation-editor
- https://wpml.org/faq/how-to-translate-urls-shortcodes-and-html-attributes-using-the-advanced-translation-editor/

On the other hand, custom links are automatically available for translation in various editors.

The behavior of link translation also depends on how the link is added. If the link is inserted as a direct URL, WPML will examine the scenario mentioned above and adapt accordingly. However, if it's embedded using HTML, it will be open for translation.

In the case of Advanced Custom Fields, you can simply set the field to "copy," and WPML will handle the adjustment automatically.

Please let me know if this clarifies things for you.

Thank you.

December 1, 2023 at 2:48 pm #14973931

Michael Briel

OKay, maybe this is a language issue, so let me use some screenshots so you will SEE what I mean - WPML does NOT work as described!

Before I explain any further let me note that, when I wrote you last time, more buttons were detected too, nothing has changed on the pages inbetween.

OKay , so let me explain again:

On the attached image you see parts from four pages - each in it's own column. Top row is what I set up in Gutenberg, row 2 is the wpml advanced interface WITHOUT filtering and row 3 is the same with filtering for "http".

Page 1 is the main page and pages 2-4 are subpages from page 1.

Page 1 links to all three subpages with 1 text link and 1 button each (the textlinks are in the texts with the image backgrounds, so they're bad to see)

Pages 2-4 are linking to each other with 1 text link and 1 button each.

In row 2 you can see that on Page 1 wpml shows me 2 URLs WITHOUT filtering for "http"! According to the manual this should NEVER happen, URLs are only supposed to show when filtering for them! It says so in the manual. Also you will notice that only 2 of the 3 URLs are shown, even though all are set up exactly the same. So wpml can't even be wrong consistently. 🙁

Subpage 1 shows none of the URLs in the unfiltered interface. But, as you can see, it shows the URL of a BUTTON.

Subpage 2 shows 1 of the textlink URLs in the "unfiltered" mode. (there are 2 of those on that page!)

And subpage 3 shows none. <- Works as described here.

In row 3 you see that when I filter for "http" on page one now indeed all three textlink-URLs are showed.

Subpage 1 has NONE of the textlink URLs even if I filter.

Subpage 2 has the two links correctly and subpage 3 has NONE of the 2 textlinks again.

Also very "interesting": When I wrote about this the first time all the "learn more" buttons URLs still showed up in WPML (sometimes only with filtering, sometimes without, just like the textlinks - with no logic behind it). Now they aren't even there any more when I filter.

These all are INTERNAL links, the pages linking to each other.

SO what's going on here? Is wpml rolling dice to decide whether it works as described or not?

Again - I had all the pages "100 % completed", but on one of the page all the textlinks were correct, but the buttons all pointed to the ENGLISH pages instead of French (and couldn't be changed in WPML, because they simply weren't there on that page in the interface). WPML did NOT change them automatically as you claim. Only the links I could actually translate into the new French links in WPML were correct - ALL the others still pointed to the English pages. On one page both text and button links were half okay and half wrong, the next page was completely fine...

So please don't tell me again what it says in the documentary, because that is obviously WRONG. The URLs to other internal pages were ONLY corrected if I did it. NONE were changed to their French versions automatically.

As you can see WPML is HIGHLY inconsistent with URLs in several regards on these new pages (the first we tried to completely translate with WPML since switching from Polylang).

How is this mess supposed to safe time?!?

Back with Polylang I would set up a page in English, then copy it into the French page and replace the English texts via copy/paste. And when there's no special layout stuff I can even copy/paste the whole French text, including Headlines and Lists from Word into Gutenberg in one go. Done.

With WPML the way it "works" now I create a new page in English. Then I either have to copy&paste each single sentence into the WPML interface one by one or click "combine" several times first, so I can sometimes copy&paste several sentences in one go. And then, of course, I'll also have to click "Accepted" for each single sentence...

When that is done I then have to check the translated page to see what WPML messed up on it - and then edit the translated page in Gutenberg to overwrite the untranslated links or whatever else isn't correct.

Your turn.

Unbenannt-2.jpg
December 1, 2023 at 2:50 pm #14973967

Michael Briel

"In the case of Advanced Custom Fields, you can simply set the field to "copy," and WPML will handle the adjustment automatically."

Yes. But only for the fields that it actually is able to DETECT, just like with the URLs it often ignored whatt's in them, even if I DID activate translation for every single field. 🙁

What the actual ....

December 4, 2023 at 8:46 am #14983259

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello Michael,

I would like to test this further, so To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and FTP) to your site.

So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply.
hidden link

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

December 5, 2023 at 2:12 pm #14998845

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have created a test site here as mentioned, remember this is a public test site: hidden link

Look forward to your reply.

Thanks

December 5, 2023 at 3:48 pm #15000473

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I fixed a few settings on the public test site and disabled a lot of plugins to quickly test it.

When I first edited the environment page, I noticed that the URLs were not available for translations, but once I updated the page, without any changes, the jobs were updated and the links were there properly.

Can you check this for two pages and see if everything is correct here?

Look forward to your reply.

Thanks

December 5, 2023 at 4:13 pm #15000717

Michael Briel

Hi there again.

When I check the "environment" translations: Now indeed all the buttons are there when I filter for http- But not the two text links.

In the "Corporate..." Main page the French translation has all the buttons and the three text links filtered. But the German translation has ONLY the textlinks and not the buttons.

None of the pages has any links in unfiltered mode any more - so that is working now.

What did you do to "Update" the pages?

Thanks for your insight. 🙂

December 6, 2023 at 6:33 am #15003935

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

If you search for /en/ the text links are working too.

To update the page and translations, follow the below steps:
- Edit all translations and mark it as 100% complete
- Then edit the page in the default language and hit update without making any changes or you can add a small text.

Let me know if this helps.

Thanks

December 11, 2023 at 10:59 am #15035763

Michael Briel

It's okay, we uninstalled WPML again after more problems that are certainly related to it popped up...

One was in the "Search and Filter" Plugin: All of a sudden our Result pages showed up empty and when checking why I found that something had changed the target URLs given to Search&Filter. INstead of "hidden link" or "hidden link" they suddenly say: "hidden link" or "hidden link".

Another new problem was that a new Page we set up can't be translated with WPML, because that'll somehow prevent "Asset Cleanup", to load for the page, making it impossible toset the scripts needed on the page... Even if I then change to the Gutenberg Editor - the settings won't load. However everything works finde if I never touch WPML and instead duplicate the page and change it's language...

Now, I'm not saying "WPML is bad" - it's obviously quite successful and has many satisfied users - I doubt this would be that way when the problems I encountered were a common thing. 🙂 Our page has been growing and changing over the past five years now under my administration, and of course the whole time all the time the many plugins and scripts and other changes were tested and chosen to work with our page setup based on Polylang.

IF instead we had used WPML from the beginning five years ago then today the page of course would be 100% WPML Compatible. Sadly it isn't and while initial tests with some new quickly set up testing pages worked fine it seems that the more complex a page gets the more likely it'll cause problems with WPML. And trying to solve everything new that comes up has already cost us a lot of time.

So thanks for your help and all the best!

December 11, 2023 at 1:38 pm #15037735

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Dear Michael,

I appreciate your feedback.

I understand that configuring and maintaining compatibility can be time-consuming, and we regret that you have uninstalled WPML. However, should you decide to use WPML again in the future and encounter any issues, please don't hesitate to reach out to us. We are here to assist you promptly through both chat support and our forum.

Thank you.

The topic ‘[Closed] inconsistent link handling in Advanced WPML Translator interface’ is closed to new replies.