This thread is resolved. Here is a description of the problem and solution.
Problem:
JetSmartFilters - Smart filter's custom fields are not translated in secondary languages.
Solution:
Follow the workaround steps from the errata page:
- https://wpml.org/errata/jetsmartfilters-smart-filters-custom-fields-are-not-translated-in-secondary-languages/
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: Known issue
This topic contains 12 replies, has 2 voices.
Last updated by Dražen 1 year, 9 months ago.
Assisted by: Dražen.
Author | Posts |
---|---|
April 5, 2023 at 11:45 am #13409945 | |
denisR-17 |
|
April 5, 2023 at 11:55 am #13409971 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I was about to check your claims, but I see there are no newer versions released. The last one is JetSmartFilters 3.1.0, from March 06. - hidden link Please share with me more info on the versions you are using. Thanks, |
April 5, 2023 at 11:58 am #13410093 | |
denisR-17 |
I m using 3.1.0 and there is no "foreach ( $options as $value => $label ) {" inside /wp-content/plugins/jet-smart-filters/templates/filters/checkboxes-item.php |
April 5, 2023 at 12:13 pm #13410207 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks. Can you please go to the next test website and install the plugin, so I can further check with our team? - hidden link Thanks, |
April 5, 2023 at 12:44 pm #13410333 | |
denisR-17 |
done |
April 5, 2023 at 1:03 pm #13410491 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks. Can you please try the next workaround: - Translate the labels through WPML > String Translator - Open the *wp-content\plugins\jet-smart-filters\templates\filters\checkboxes-item.php file: - Replace the following snippet: $checked_icon = apply_filters( 'jet-smart-filters/templates/checkboxes-item/checked-icon', 'fa fa-check' ); with this: $checked_icon = apply_filters( 'jet-smart-filters/templates/checkboxes-item/checked-icon', 'fa fa-check' ); $label = apply_filters('wpml_translate_single_string', $label, 'Jet Engine Admin Labels', 'Admin Label - '.$label ); - Open the wp-content\plugins\jet-smart-filters\templates\filters\check-range.php file Replace the following snippet: foreach ( $options as $value => $label ) { - With this: foreach ( $options as $value => $label ) { $label = apply_filters('wpml_translate_single_string', $label, 'Jet Engine Admin Labels', 'Admin Label - '.$label ); Should work fine then. Let me know how it goes. Regards, |
April 5, 2023 at 1:08 pm #13410583 | |
denisR-17 |
It shows correctly, but don't filter correctly, try to choose apartment and filter please: New threads created by Dražen and linked to this one are listed below: https://wpml.org/forums/topic/split-jetsmartfilters-dont-filter-correctly/ |
April 5, 2023 at 1:11 pm #13410613 | |
denisR-17 |
As i see it tooks to the link still polish slug, so it tries to filter via polish slugs inside english archive |
April 5, 2023 at 1:30 pm #13410725 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, as I said before, we limit 1 issue per 1 ticket to keep things clear and easy to follow. Can you please confirm fix from the errata work fine now and that the issue is solved? As for your other issue I have opened a new ticket and one of my colleagues will continue to help. You can please continue there on that topic, or if you prefer close nad open a chat when available. - https://wpml.org/forums/topic/split-jetsmartfilters-dont-filter-correctly/ Kind regards, |
April 5, 2023 at 1:33 pm #13410765 | |
denisR-17 |
If you think that it is another issue, no problem it can be at another ticket. But it seems to me, that the problem is the same. when it's filtering the slug is still untranslated so it doesen't filter as it was. |
April 5, 2023 at 1:37 pm #13410801 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, that was not the issue you first reported. You said you have an issue same as errata, and fix not working, which is: When using the JetSmartFilters plugin to generate filters for JetEngine custom fields, the filter labels are not translated into secondary languages. If the labels are translated now fine with the suggested fix, then please for the issue with filtering to continue in that another ticket. If there are some issues still with the filter label not translating correctly please let me know and I will be glad to help you on this topic. Hope this makes sense. Kind regards, |
April 5, 2023 at 1:38 pm #13410807 | |
denisR-17 |
Sure, you are right, i will wait for respond at another ticket, thanks |
April 5, 2023 at 1:54 pm #13410873 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, great, thanks. Please note due to the holidays there might be a slightly longer waiting time before a reply. I will be closing this current ticket. Kind regards, |