Skip to content Skip to sidebar

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

Problem:
You are trying to translate the Filter Everything sorting shortcode (fe_sort) used in your shop page with Elementor's Shortcode widget, but are unsure how to proceed.
Solution:
First, refer to our general guide on translating shortcodes with WPML here: https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/.
Next, use WPML's String Translation to locate and translate the shortcode strings. Detailed steps can be found in our documentation:

If you cannot find the strings, consider creating two identical shortcodes for each language and use IDs to differentiate them.
If the issue persists, check our errata page for known issues with Filter Everything: https://wpml.org/errata/filter-everything-acf-fields-not-translated-on-frontend/.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum: https://wpml.org/forums/forum/english-support/.

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 6 replies, has 2 voices.

Last updated by Andrey 10 months, 1 week ago.

Assisted by: Andrey.

Author Posts
September 16, 2024 at 1:00 pm #16184007

maksimK-11

<b>Background of the issue: </b>
I'm trying to figure out how to translate the Filter Everything sorting shortcode (fe_sort). I've added it to my shop page and am not quite sure what the best approach is. I've found this documentation: hidden link. However, I'm using Elementor and its Shortcode widget.

<b>Symptoms: </b>
Not sure how to translate the strings in the Filter Everything sorting shortcode (fe_sort) using Elementor's Shortcode widget.

<b>Questions: </b>
How can I translate the strings in the Filter Everything sorting shortcode (fe_sort) using WPML?
Is there any specific documentation for translating shortcodes with WPML?

September 16, 2024 at 1:03 pm #16184017

maksimK-11

How can i translate the shortcode without having any ID's?

September 16, 2024 at 1:35 pm #16184278

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

This is general information on how you can translate shortcodes with WPML: https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

You can try to refer to the documentation provided below to locate the string in WPML → String Translation and translate it.

- https://wpml.org/documentation/getting-started-guide/string-translation/#choosing-which-strings-to-display

If you cannot find the text you want to translate in the String Translation section, follow the steps outlined in the documentation below.

- https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/

As another solution based on the link you shared, it could be possible to create two identical shortcodes for each language and utilize IDs to indicate the shortcode for each language.

hidden link

In case you encounter the same issue: https://wpml.org/errata/filter-everything-acf-fields-not-translated-on-frontend/

September 16, 2024 at 4:53 pm #16185038

maksimK-11

Hi Andrey,

thanks for assisting.

I saw and read the documentations. The Filter Everything documentation suggests to create WordPress widgets, which get separate IDs which than can be used for translation afterwards. I use Elementor Hello Theme, which does not come with widget support out of the box (?). So, i can't create widgets and use them for translation.

I added a shortcode widget in Elementor Editor and then simply pasted [fe_search] in it.

I also scanned the FE plugin but still can't see the strings i'd like to translate.

I'm a bit confused because all the suggested methods, regarding shortcode translation, rely on a attribute like ID or url, which i don't see or can't figure out.
This is why i'm stuck with this one :/

How can i translate a shortcode without any attributes?

September 17, 2024 at 2:34 pm #16189260

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I saw and read the documentations. The Filter Everything documentation suggests to create WordPress widgets, which get separate IDs which than can be used for translation afterwards. I use Elementor Hello Theme, which does not come with widget support out of the box (?). So, i can't create widgets and use them for translation.

On this step, I suggest you contact Filter Everything support and clarify how it can be achieved with Elementor.

I want to ensure you know this note from our compatibility team:

Please note: Although Filter Everything declares compatibility with WPML, we have not been able to make formal contact with the author despite our best efforts. We have received some related issues in our support forum, but in order to resolve them, we need to get cooperation from the author. If you would like better compatibility between WPML and Filter Everything, please encourage the author to reach us via Go Global.

https://wpml.org/plugin/filter-everything-pro/

How can i translate a shortcode without any attributes?

To answer this question, I can suggest only this article: https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/#making-shortcodes-translatable

You can try to avoid specifying attributes. I'm unsure how Filter Everything shortcode works; it might pull data from parts of your website where adding config won't help. You might still need to create another shortcode and use IDs.

September 17, 2024 at 8:21 pm #16190602

maksimK-11

Thanks for the provided information.

For now i've managed to fix this by using the Dynamic Condition PlugIn, which i have installed anyway.
I've added two Elementor Shortcode widgets to the page where the sorting [fe_sort] shortcode is used, one in DE and one in EN.
Afterwards i added a condition to show or hide one or the other depending on the URL: contains or not contains domain.com/en/.

This feels more like a workaround but it does it's job for now.
I couldn't find a way to get the IDs to translate the shortcode using WPML :/.

Maybe this is useful for anybody else struggling with this :).

Thanks for assisting!

September 18, 2024 at 1:59 pm #16193518

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for the update. It's good to know that it's working now. Have a great day!