Navigation überspringen

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

Problem:
The client was unable to display an English form using a shortcode managed by the WPCode plugin because the shortcode ID was not visible in the Advanced Translation Editor (ATE), despite being added to the wpml-config.xml and making the ID translatable.
Solution:
We discovered that the shortcode was inserted using a code block, which is not a translatable element in Avada. We resolved the issue by recommending the client to use the Text Block element to insert the shortcode on the page. This change made the shortcode appear in the ATE, allowing it to be searchable and translatable. We also addressed a related issue in a separate support ticket, which can be followed here: Missing Translations on Front-End.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML Support Forum.

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 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Lucas Vidal de Andrade Vor 4 Monaten, 3 Wochen.

Assistiert von: Lucas Vidal de Andrade.

Verfasser Beiträge
September 2, 2024 unter 11:48 am

nathalieH-14

Background of the issue:
I am using JavaScripts to display forms in different languages (main language German, translation English) via shortcodes managed by the WPCode plugin (for example [wpcode id="10359"]). The German form with the ID 10359 is displayed correctly in German (main language) but I can't display the English form with the ID 10358 in English because I can't find the shortcode ID in the ATE (even with the search function).
I added the shortcode to wpml-config.xml and added the recommended code to the functions.php to make the ID translatable as explained here:
https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/#making-shortcodes-translatable

Symptoms:
I can't display the English form with the ID 10358 in English because I can't find the shortcode ID in the ATE.

I used the string translation and again I had the error in the ATE "We're sorry, but something went wrong." So I suppsoe it's related. I'll give you some credentials. You can duplcate the site with the duplicator plugin.

The form is on this page:
versteckter Link

The codes for the forms
German
[wpcode id="10359"]
Englisch
[wpcode id="10358"]

If you make some changes in the translation in the ATE, you may need to reset the avada cache to see them:
Avada > Optionen > search nach Cache -> Button "Avada Cache zurücksetzen" (Reset Avada cache)

Questions:
Why can't I find the shortcode ID in the ATE even with the search function?

September 2, 2024 unter 12:40 pm
September 2, 2024 unter 6:31 pm #16133243

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 still looking into your issue and will get back to you as soon as I have new information. Thank you.

September 2, 2024 unter 6:49 pm #16133308
nathalieH-14

Hi Lucas,
thanks, no problem, I am not in a hurry.
I have another issue: on some pages the german text appears in the english version, for example here: versteckter Link (sse screenshot)
In the ATE the translations are OK, but they are not applied in the frontend.
I don't know exactly how it appears but it seems to be related with links (only texts with links are concerned).
Resetting the avada cache don't help here.
I suppose you'd like me to open another ticket for that but could it be possible that you are in charge of the new ticket since you have all the credentials for the website?
Thanks

Neue Threads, die von Lucas Vidal de Andrade erstellt wurden und mit diesem verbunden sind, sind unten aufgeführt:

https://wpml.org/de/forums/topic/teilen-missing-translations-on-front-end/

german texts on english page.jpg
September 3, 2024 unter 11:13 am #16135220

Lucas Vidal de Andrade
Supporter

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

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

Hello,

About the shortcode id. I noticed that they were inserted using the code block, which as it seems is not a translatable element from Avada. I was able to fix it, by using the Text Block element to insert the shortcode in the page, and then looking for it inside ATE, using the search field. Please see images attached. Let me know if by following these steps it works out for you.

As for the second issue you mentioned, I created a new ticket to address it, and it is assigned to me 🙂

https://wpml.org/de/forums/topic/teilen-missing-translations-on-front-end/

I'll answer you there. Thank you.

Seite bearbeiten _Spenden als Geschenk_ _ Stiftung Wings of Hope _ WordPress.jpeg
Advanced Translation Editor - WPML.jpeg
September 3, 2024 unter 2:19 pm #16136160

nathalieH-14

Hello Lucas,

thank you very much for your help!
It worked very well on this page. On another page (versteckter Link) it was much difficult because the code was in a toggle and first it wasn't shown in the ATE but I could make it work too.

Many greetings