Navigation überspringen

Dieses Thema ist gelöst. Hier finden Sie eine Beschreibung des Problems und der Lösung.

Problem:
Sie verwenden auf Ihrer Website Code für Rechner, der Formulare mit CSS und Javascript umfasst. Nach einem der letzten Updates hat der klassische Translation Editor Probleme verursacht und den Code zerstört.
Solution:
Da der klassische Translation Editor als veraltet gilt und Probleme mit bestimmten Code-Elementen aufweist, empfehlen wir, entweder die manuelle Übersetzung zu verwenden, die Sie unter https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/#how-to-use-manual-translation finden, oder den erweiterten Übersetzung-Editor, den Sie hier einsehen können: https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/.

Diese Lösung könnte möglicherweise irrelevant sein, da sie veraltet ist oder nicht auf Ihren Fall zutrifft. Wir empfehlen dringend, die Seite mit bekannten Problemen unter https://wpml.org/known-issues/ zu überprüfen, die Version der dauerhaften Lösung zu verifizieren und zu bestätigen, dass Sie die neuesten Versionen von Themes und Plugins installiert haben. Sollten weiterhin Probleme auftreten, zögern Sie nicht, ein neues Support-Ticket zu eröffnen. Besuchen Sie dazu unser Support-Forum unter https://wpml.org/de/forums/forum/support-in-german/.

0% of people find this useful.

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.

Schlagwörter: 

Dieses Thema enthält 1 Antworten, hat 0 Stimmen.

Zuletzt aktualisiert von Bruno Kos Vor 3 Wochen, 3 Tage.

Assistiert von: Bruno Kos.

Autor Beiträge
März 14, 2025 um 12:33 pm #16816505

Peer

Background of the issue:
Ich nutze auf meiner Website Code für Rechner - dies sind Formulare mit CSS und Javascript. Bisher habe ich immer den klassischen Translation Editor genutzt, aber auch dieser macht nach einem der letzten Updates Probleme und zerstört den Code. Link zur Seite mit dem Problem: versteckter Link. Ich erwartete, dies zu sehen: versteckter Link. Lösen kann ich dies aktuell nur, wenn ich die Sprachseite selbst bearbeite und den Quellcode dort einfüge. Beispiel: versteckter Link

Symptoms:
Der klassische Translation Editor macht nach einem der letzten Updates Probleme und zerstört den Code. Es scheint, als ob WPML hier fehleranfällig ist und mit bestimmten Code-Elementen Probleme hat.

Questions:
Warum zerstört der klassische Translation Editor meinen Code nach dem Update?
Wie kann ich den Code in den Übersetzungen korrekt einfügen, ohne dass er zerstört wird?

März 14, 2025 um 1:55 pm #16817215

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Auf dieser Website:
versteckter Link

Können Sie Ihren Code zu einer der Seiten hinzufügen (ich glaube, wir können ihn mit dem Gutenberg Codeblock reproduzieren) und ihn übersetzen?

CTE ist eingestellt. Tritt das gleiche Problem hier auf?

März 17, 2025 um 6:10 pm #16826819

Peer

Hi Bruno,

code is added to versteckter Link

translated version with CTE
versteckter Link

not working

The English code which I used for your tests
versteckter Link

Cheers Peer

März 18, 2025 um 8:26 am #16828427

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

I apologize, I made a PHP error in the sandbox and FTP is not available there.

But I created another site:
versteckter Link
hello@wpml.org
eJSndHU98U

And I applied https://wpml.org/errata/visual-tab-in-classic-translation-editor-is-not-showing-contents-after-update-to-wordpress-5-6/.

Can you add your code once again to the sample page and translate?

März 18, 2025 um 9:55 am #16829036

Peer

Hi Bruno,

UK version -> versteckter Link

translated to german

DE -> versteckter Link

nearly works now.

German code I posted in to translate seperate

versteckter Link

I set the testing site to noindex!

Cheers Peer

März 18, 2025 um 11:23 am #16829749

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

When you say it nearly works now, is the issue with styling only, while the functionality works?

März 18, 2025 um 11:30 am #16829755

Peer

yes, you can extract the codes and use a editor to compare and you see the problems. Like I mentioned in the first chat.

Unfortunately I don't receive mails when you write answers here 🙁

Peer

März 18, 2025 um 1:26 pm #16830600

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

I am checking this with our 2nd tier and will keep you posted.

As for the emails, can you check if you have this option active?

andern.png
März 19, 2025 um 7:07 am #16833349

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

This has been escalated to our 2nd tier team team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.

März 20, 2025 um 1:45 pm #16840318

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

We tried to find a fix for this, or at least a workaround, but we weren't able to.

Since this particular issue occurs only with the Classic Translation Editor which we now classify as legacy, we recommend considering either to use https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/#how-to-use-manual-translation (better solution if you need to have different code) or https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/.

Because even if we submit this to our development team, I'm not sure if or when it will be resolved given the CTE legacy status.

image.png
März 27, 2025 um 6:17 am #16866072

Peer

The Problem ist Not solved. It's not working. The "solution" is just a workaround.
Which needs a lot of manual work and destroys the translation process. The Problem ia that the Plugin hast some coding Problems. Code or even CSS Crash the process
Please comunicate a Date when this Bug ist fixed. Thanks you

Mai 20, 2025 um 6:49 am #17051057

Bruno Kos
WPML-Unterstützer seit 12/2018

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+02:00)

Hi,

After discussing the issue further with our development team, we’ve confirmed that the root of the problem lies in how custom code (particularly JavaScript and CSS) is being used directly inside the content area. This approach conflicts with the Classic Translation Editor (CTE) and can break the translation process, which is why you're seeing issues.

Since the Classic Translation Editor is now classified as a legacy tool, there are no guarantees that this specific bug will be fixed in the short term — or at all. WPML is focusing future development and compatibility around the Advanced Translation Editor (ATE) and manual translation methods, which are better suited for structured content and can avoid this issue entirely.

Recommended next steps:

* For code-heavy pages: Move custom JS or CSS to `functions.php` or to a custom CSS file/section. This is the best practice and avoids interference with translation tools.
* For translating content with custom code: Use manual translation https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/#how-to-use-manual-translation

We understand that this may feel like a workaround, but in this case, it's actually the recommended long-term approach, aligned with WPML's roadmap and best practices.

Thanks again for your understanding.

Best regards,
Bruno Kos