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.
This topic contains 3 replies, has 2 voices.
Last updated by Andreas W. 1 week, 5 days ago.
Assisted by: Andreas W..