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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Unterstützt die Zeitzone: Asia/Dhaka (GMT+06:00)

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

Zuletzt aktualisiert von Prosenjit Barman Vor 1 Jahr.

Assistiert von: Prosenjit Barman.

Verfasser Beiträge
April 22, 2024 unter 4:23 am #15547933

aila

Thanks a lot, that worked. But now I have another issue:

I can't figure out the xml code I need to adjust the settings of this module (I need to translate the title, description and button text).
Could you help me?

[{"id":"68de97d","elType":"container","settings":{"flex_direction":"column"},"elements":[{"id":"47079ca","elType":"container","settings":{"_column_size":33,"width":{"size":null,"unit":"%"},"offset":"vc_col-lg-3 vc_col-md-3","width_tablet":{"size":50,"unit":"%"},"border_border":"none","border_color":"#F2F2F2","border_radius":{"unit":"px","top":"20","right":"20","bottom":"20","left":"20","isLinked":true},"box_shadow_box_shadow_type":"yes","content_width":"full","box_shadow_box_shadow":{"horizontal":5,"vertical":5,"blur":2.5,"spread":0,"color":"rgba(0, 0, 0, 0.18)"},"background_background":"classic","box_shadow_hover_box_shadow_type":"yes","box_shadow_hover_box_shadow":{"horizontal":"","vertical":0,"blur":10,"spread":0,"color":"#CA4D6B"},"animation":"none","__globals__":{"background_color":"globals/colors?id=66c4944"}},"elements":[{"id":"c289f6d","elType":"widget","settings":{"style":"style_3","image":{"id":6926,"url":"versteckter Link"},"title":"Vocational Training","image_size":"200x200","textarea":"Unlock Your Potential: Pursue Excellence through Ausbildung in Germany","content":"","button_text":"Learn more","_padding":{"unit":"px","top":"20","right":"20","bottom":"0","left":"20","isLinked":false},"__globals__":{"icon_bg":"globals/colors?id=primary"},"button":{"url":"versteckter Link","is_external":"","nofollow":"","custom_attributes":""}},"elements":[],"widgetType":"stm_image_box"}],"isInner":true}],"isInner":false}]

April 22, 2024 unter 4:39 am #15547956

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hi There.
I hope you're doing well.

I see what you need. To translate the Title, description, and button field names of the widget, you'll need to unserialize the data at versteckter Link. You can see the field names from the unserialized data and then you can add translation support for these fields. Please refer to the guide below to learn more about the process.

- https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/#registering-simple-widgets

However, I'd like to inform you that we have a solution in hand that can help you easily add translation support for the Elementor widgets. We have a tool available that can assist in creating the necessary XML configuration for the custom Elementor widgets with just a few clicks. This tool is designed to reduce the time and effort of manually registering custom Elementor widgets by writing configurations for each one. To use this tool and better understand the process, kindly refer to the instructions in the following documentation: https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/registering-custom-elementor-widgets-for-translation/

Once the XML for the widgets is added in WPML > Settings > Custom XML Configuration, you should be able to translate the texts within the widget from the Translation editor and the translation will also appear correctly.

If you have any further questions or need assistance, please don't hesitate to reach out. I'll be happy to assist!

Best regards,
Prosenjit

April 22, 2024 unter 12:19 pm #15550171

aila

Hi,
thanks a lot, I already tried that but couldn't get it to work:

I tried this:
<wpml-config>
<elementor-widgets>
<widget name="stm_image-box">
<conditions>
<condition key="widgetType">stm_image-box</condition>
</conditions>
<fields-in-item items_of="settings">
<field type="Title" editor_type="LINE">title</field>
<field type="Text" editor_type="AREA">textarea</field>
<field type="Button" editor_type="LINE">button_text</field>
</fields-in-item>
<fields-in-item items_of="elements">
<field type="Title" editor_type="LINE">title</field>
<field type="Text" editor_type="AREA">textarea</field>
<field type="Button" editor_type="LINE">button_text</field>
</fields-in-item>
</widget>
</elementor-widgets>
</wpml-config-->

And this (as suggested by the plugin):
<wpml-config>
<elementor-widgets>
<widget name="stm_image_box">
<conditions>
<condition key="widgetType">stm_image-box</condition>
</conditions>
<fields>
<field>title</field>
<field>textarea</field>
<field>button>url</field>
</fields>
</widget>
</elementor-widgets>
</wpml-config>

April 23, 2024 unter 4:46 am #15553448

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

If you've copied the XML code generated from the "Multilingual Tools" plugin and pasted it into the Custom XML Configuration section under WPML > Settings and saved the changes, the code should now be active. You should see the contents added in the "STM Image Box" widget in the translation editor.

If the contents still aren't appearing in the editor, try making a minor edit to the default page or post where the widget is located and save the changes. This action will trigger the translation process. After updating, please check the translation editor again to see if the contents are now available.

Please let me know how it goes. If you need further assistance in this matter, please feel free to let me know. I'll be happy to take a closer look and assist you further in this matter.

Best regards,
Prosenjit

Das Thema '[Geschlossen] Teilen: Custom Elementor Widget Translation' ist für neue Antworten geschlossen.