Skip Navigation

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

Problem:
The client reported that select options and checkbox labels from JetSmartFilters were not being translated.
Solution:
We provided a workaround and also shared a solution from Crocoblock. For the workaround:
1. Open the

wp-content\plugins\jet-smart-filters\templates\filters\select.php

file.
2. Replace the snippet at line 58 from:

foreach ( $options as $value => $label ) {

to:

foreach ( $options as $value => $label ) {
			// WPML workaround for compsupp-6878
			$label = apply_filters('wpml_translate_single_string', $label, 'Jet Engine Admin Labels', 'Admin Label - '.$label );

Crocoblock provided a solution involving the use of a Glossary:
1. Create a Jet Filters glossary with the needed options: https://tppr.me/W2wvp
2. Add Checkbox/radio fields into meta-boxes using the glossary for filling options: https://tppr.me/KaUgi
3. Add translations for options on WPML String Translation: https://tppr.me/OCdZ0
4. Create a filter using JetEngine Glossary as a Data Store: https://tppr.me/uIHqA

Additionally, Crocoblock has released new documentation on how to translate JetSmartFilters using a glossary built with JetEngine: https://crocoblock.com/knowledge-base/jetengine/jetengine-how-to-make-a-jetengine-built-website-multilingual/#translate-the-jetsmartfilters-filter-based-on-the-glossary-built-with-jetengine

If you're experiencing this issue and the provided solution does not resolve it, or if it seems outdated or not applicable to your case, we 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. Should you need further assistance, please open a new support ticket at our support forum.

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

Last updated by Andreas W. 1 week, 5 days ago.

Assisted by: Andreas W..

Author Posts
November 23, 2023 at 5:32 pm

guyM-10

Escalated here: hidden link

November 23, 2023 at 6:47 pm
November 23, 2023 at 6:50 pm #14911579

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I have added your report to the internal thread for:

JetSmartFilters - Select options and checkbox labels from JetSmartFilters are not translated

We are already in contact with the author in regards to this issue.

Workaround:
Open the wp-content\plugins\jet-smart-filters\templates\filters\select.php file
Replace the following snippet (line 58):

foreach ( $options as $value => $label ) {

With:

foreach ( $options as $value => $label ) {
			// WPML workaround for compsupp-6878
			$label = apply_filters('wpml_translate_single_string', $label, 'Jet Engine Admin Labels', 'Admin Label - '.$label );

If you need any further assistance, please open a new chat or ticket and we will be glad to assist you.

Best regards
Andreas

February 28, 2024 at 11:44 pm #15356108

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I would like to let you know, that we received the following feedback from Crocoblock regarding the issue reported on this ticket:

This case can be solved using the Glossary:

1) Create a Jet Filters glossary with the needed options: hidden link
2) Add Checkbox/radio fields into meta-boxes using the glossary for filling options: hidden link
3) Add translates for options on WPML String Translation: hidden link
4) Create a filter using JetEngine Glossary as a Data Store: hidden link

We asked the author if it's possible to create documentation on their website with these instructions.

April 26, 2024 at 7:18 pm #15571963

Andreas W.
Supporter

Languages: English (English ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Please take note, that Chrocoblock has released a new documentation about how to translate JetSmartFilters:

hidden link

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.