Navigation überspringen

Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Heute stehen keine Supporter zur Arbeit im German-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Unterstützt die Zeitzone: America/Sao_Paulo (GMT-03:00)

Schlagwörter: 

Dieses Thema enthält 9 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Lucas Vidal de Andrade Vor 3 Stunden, 20 Minuten.

Assistiert von: Lucas Vidal de Andrade.

Verfasser Beiträge
Oktober 31, 2024 unter 11:47 am #16351084

Thomas

Hintergrund des Themas:
I have two languages on my website: primary language German and secondary language English. I am using Kadence Blocks, and my website is fully translated and error-free. I am trying to make minor changes to a German subpage, such as adjusting spacing. Link to a page where the issue can be seen: versteckter Link

Die Symptome:
After making small changes to the German version, I lose the translated English URL of elements like the Kadence Advanced Button. The URL reverts to '/kontakt/' instead of '/en/contact-us/'. I need to manually fix the URL translation by searching for '/kontakt/' and replacing it with '/en/contact-us/' in the translated page. This issue repeats every time I make further edits to the German version. The same problem occurs with URL translations of text links.

Screencast: versteckter Link

Fragen:
Why do I lose the translated English URL when editing the German version?
How can I prevent URL translations from reverting when making changes?

Oktober 31, 2024 unter 12:27 pm #16351360

Thomas

I added the Staging-Site with login credentials. You can do whatever you want!

November 1, 2024 unter 11:35 am #16354808

Thomas

I installed the Kadence Plugins and inserted the Elements for you:
versteckter Link

But it could be a "general" problem with other Kadence Elements...

November 1, 2024 unter 3:19 pm #16355338

Lucas Vidal de Andrade
Supporter

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you so much for cooperating. I've escalated your ticket to our development team. They'll search for a solution, which usually takes a week. I'll let you know once I have new information.

Thank you

November 5, 2024 unter 2:03 pm #16367165

Lucas Vidal de Andrade
Supporter

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thank you for your patience. Let me explain what's the expected behavior here:

WPML should always translate the internal links automatically, when a translation is finished. That means that the internal link will NOT show inside the translation editor. Only links that point to other, external websites, will be available inside the translation editor.

We found out that there's a small mistake in the XML provided by Kadence, which makes you face the issue you're facing. TO fix that, please make a full website backup and follow these steps:

1. Go to WPML > Settings > Custom XML configuration
2. Add this code:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/singlebtn" translate="1">
      <key name="link" type="link" />
      <key name="text" />
    </gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

3. Save
4. Make a small change in the original page, where the button is. You can add a blank space to a text, for example;
5. Update the translation. No need to change anything.

Now, the link should be always pointing to the correct internal translated page. External links should be available inside the editor. Let me know.

November 5, 2024 unter 2:23 pm #16367274

Thomas

Thank you for the answer :).

Will you inform Kadence about ther "mistake"? Because it is not happening only with the Button it is the Link in the advanced Text block too:

<!-- /wp:kadence/advancedheading -->

XML from Kadence Blocks:

<gutenberg-block type="kadence/advancedheading" translate="1">
<xpath>//*[self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6 or self::p or self::div or self::span.wp-block-kadence-advancedheading]</xpath>
</gutenberg-block>

November 5, 2024 unter 3:05 pm #16367721

Lucas Vidal de Andrade
Supporter

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hey there,

I'm glad to hear that. We are already checking the fix and communicating them. I'm waiting to see if there's a fix for the link inserted in the text element.

November 8, 2024 unter 1:43 pm #16382292

Lucas Vidal de Andrade
Supporter

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hey there,

I got feedback from our devs. They updated the Custom XML for the button and the text link you were having issues with:

<wpml-config>
  <gutenberg-blocks>
    <gutenberg-block type="kadence/singlebtn" translate="1">
      <key name="link" type="link" />
      <key name="text" />
    </gutenberg-block>
    <gutenberg-block type="kadence/advancedheading" translate="1">
			<xpath>//*[self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6 or self::p or self::div or self::span.wp-block-kadence-advancedheading]</xpath>
      <xpath type="link">//a/@href</xpath>
	</gutenberg-block>
  </gutenberg-blocks>
</wpml-config>

Please update that part on WPML > Settings > Custom XML, make a small change in the original post and save. Finally, check the translation again. The internal links should be translated automatically after saving the translation. They should not show inside the translation editor. Let me know.

November 8, 2024 unter 2:28 pm #16382423

Thomas

Hi,
thank you for the support. I sent it to kadence Team directly.

I have a question regarding this. It is fine, when the URLs are translated automatically now :).

But why it happend that, when the string was translated manually, that the translation was lost all the time?

Thank you!
Tobi

November 8, 2024 unter 3:02 pm #16382605

Lucas Vidal de Andrade
Supporter

Sprachen: Englisch (English ) Spanisch (Español ) Deutsch (Deutsch ) Portugiesisch, Brasilien (Português )

Zeitzone: America/Sao_Paulo (GMT-03:00)

Hey there,

I'm not sure about that. It's likely that the previous custom XML was causing some unexpected behavior.