Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needed to translate the cart title 'il mio carello' which is set in an Elementor widget added by the jet-blocks plugin.

Solution:
We recommended the following steps:
1. Navigate to WPML -> Settings -> Custom XML Configuration and save the following code to register the widget for translation:

<wpml-config>
  <elementor-widgets>    
    <widget name="heading1">
      <fields>
        <field type="Cart Dropdown Label" editor_type="LINE">cart_list_label</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

2. Go to Templates and search for the template 'Orte Header Webshop'.
3. Edit it using Elementor, make a minor modification to the Italian template (add an empty space, for example, and save it) so WPML recognizes that there's an update available for the translation.
4. Edit the translation of the template, and the item 'il mio carello' should now be available for translation.

After performing these steps, 'il mio carello' should appear as 'my cart' in the English version of the site.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket for further assistance.

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.

This topic contains 4 replies, has 2 voices.

Last updated by Mateus Getulio 6 months, 3 weeks ago.

Assisted by: Mateus Getulio.

Author Posts
May 10, 2024 at 11:35 am #15614382

pascalB-17

Tell us what you are trying to do?
Translate the cart title set in the mentioned widget (in my case "il mio carello"

Is there any documentation that you are following?
no

Is there a similar example that we can see?
shop.baiaorte.ch > click the cart icon in the header

What is the link to your site?
hidden link

Bildschirmfoto 2024-05-10 um 12.43.38.png
May 10, 2024 at 9:04 pm #15616414

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello there,

Can you please go to WPML -> String Translation and search for that string?

If you can't find it there, please enable the option "Look for strings while pages are rendered" at the bottom of the page, then visit the page in which the text is located and go back to the String Translation, refresh the page and check if you'll be able to locate new strings now. (Please don't forget to uncheck the option "Look for strings while pages are rendered" once you're done). Translate the new string and see if it gets the issue fixed.

Thank you, please let us know how that goes.
Mateus

May 11, 2024 at 1:44 pm #15617046

pascalB-17

Hi Mateus

Thanks for your reply. Unfortunately that's what I already did (mutliple times) but there is just no way to find that string - no matter what I do.
Also the Crocoblock add-ons are wpml compatible and according to this doc (hidden link) and this doc (hidden link) the widget content parts should be displayed in the advanced translation editor..

Thanks, Pascal

May 11, 2024 at 8:31 pm #15617215

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello Pascal,

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

May 13, 2024 at 1:50 pm #15621239

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello Pascal,

I checked it and that text was coming from an Elementor widget added by the plugin jet-blocks.

In order to translate it I followed the steps:

- Go to WPML -> Settings -> Custom XML Configuration and save the following code(https://pastebin.com/zMYJBEqV) to register that widget:

<wpml-config>
  <elementor-widgets>
    <widget name="jet-blocks-cart">
      <fields>
        <field type="Cart Dropdown Label" editor_type="LINE">cart_list_label</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

- Go to Templates and search for the template 'Orte Header Webshop'
- Edit it using Elementor, make a minor modification to the Italian template(add an empty space for example and save it) so WPML recognizes that there's an update available for the translation
- Edit the translation of the template and you'll see the item 'il mio carello' in there now

I performed those steps and the il mio carello appears as 'my cart' in the English version of the site now.

Thank you,
Mateus

May 13, 2024 at 2:13 pm #15621332

pascalB-17

Hi Mateus

Thank you very much, this works!
I wrote to Crocoblock as it seems quite complicated if I have to register manually every widget for translation 🙂

Thanks again and have a great day
Pascal