Skip Navigation

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

Problem:
I want to translate the 'Reset filter' button text added with the Elementor's "Remove filters" widget

Solution:
The widget needs to be registered for translation with the following Custom XML Configuration:

<wpml-config>
    <elementor-widgets>
        <widget name="jet-smart-filters-remove-filters">
            <fields>
                <field  editor_type="LINE">remove_filters_text</field>
            </fields>
        </widget>
    </elementor-widgets>
</wpml-config>

After adding the above code to WPML > Settings > Custom XML Configuration tab, update the page where the text appears then update the translation and the text will be available in the translation editor.

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

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.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by antonW 1 year, 10 months ago.

Assisted by: Mohamed Sayed.

Author Posts
February 1, 2023 at 3:54 pm #12940173

antonW

Tell us what you are trying to do?
I want to translate the 'Reset filter' button text on this page:
hidden link
This is an Elementor Pro element to reset the selected filter values of the Jet Smart Filters that are configured on this page.

Is there any documentation that you are following?
Yes, generated the text strings and found the string in the domain: wpml-translation-management. After setting the translations, they are not displayed on the page

Is there a similar example that we can see?

What is the link to your site?
hidden link

Reset Filters Issue String.jpg
Reset Filters Issue Page.jpg
February 1, 2023 at 6:53 pm #12941617

Mohamed Sayed

Hi Anton,
Thanks for contacting WPML support, I will be glad to help you.

The string you found is the one used to reset the Translation Management search filter (Please check the attached screenshot).

Kindly try the following steps:

1. Go to WPML > Theme and plugins localization
2. Scan "JetSmartFilters" for strings
3. Go to WPML > String Translation
4. Search again for the string

If that didn't help, please try the following:

1. Go to WPML String Translation
2. Scroll down to the "Auto register strings for translation" section and enable that option
3. Visit the page where the string is added on the front end
4. Go back to String translation and disable the auto register option
5. Search again for the string and translate it

Let me know please if that helps.

Regards,
Mohamed

Screenshot_814.jpg
February 1, 2023 at 7:07 pm #12941705

antonW

Thanks for the quick reply.

I already tries these routes before logging the issue 😉

Did it again with the same results. The string does not show, or I cannot find which one it is...

February 2, 2023 at 9:36 am #12945153

Mohamed Sayed

Hi Anton,

Maybe the widget is not registered for translation, could you please follow this guide to register it and see if that helps? https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/

February 13, 2023 at 3:09 am #13016401

antonW

I started following the guide, but the element is not displayed at all in the Classic translation editor. So I am unable to follow the procedure at this stage. Please advise...

February 13, 2023 at 8:58 am #13018103

Mohamed Sayed

Hi Anton,

I would need to request temporary access (WP-Admin) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

February 13, 2023 at 5:43 pm #13023519

Mohamed Sayed

Hi Anton,
Thanks for providing the access details.

The "Remove filters" widget wasn't registered for translation, this can be fixed by following the guide I shared before (https://wpml.org/documentation/support/language-configuration-files/how-to-register-page-builder-widgets-for-translation/).

I added the following code to WPML > Settings > Custom XML Configuration tab:

<wpml-config>
    <elementor-widgets>
        <widget name="jet-smart-filters-remove-filters">
            <fields>
                <field  editor_type="LINE">remove_filters_text</field>
            </fields>
        </widget>
    </elementor-widgets>
</wpml-config>

After updating the page (Test page) and creating the translation, the text appears in the classic translation editor as you see in the attached screenshot.

Please edit the page in the default language, make a small change and save it then update the translation.

Let me know please if that helps.

Regards,
Mohamed

Screenshot_852.jpg
February 15, 2023 at 1:54 pm #13040605

antonW

Thanks for the follow up!
I can see the translation field and have set the translation for Dutch to 'Filters verwijderen'.
However, the original English text still is displayed.

February 15, 2023 at 6:23 pm #13043423

Mohamed Sayed

Hi Anton,

All the translations of this page weren't complete and the Dutch showed "In progress" status. I completed the translation for Dutch and the button text is translated now.

Please make sure to complete the translation for other languages.

Regards,
Mohamed

Screenshot_868.jpg
Screenshot_869.jpg
Screenshot_870.jpg