Skip Navigation

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

Last updated by michaelS-282 1 year, 9 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 15, 2023 at 9:21 pm #13651377

michaelS-282

I have added the metabox values into the string translation following the steps in attached images. Then translate the metabox values, the front end is still EN. please check.

translate the metaxbox values, but still not working.png
add the values to the string translations-4 5.png
add the values to the string translations-3.png
add the values to the string translations.png
May 15, 2023 at 9:45 pm #13651539

michaelS-282

After the metabox values are translated, the ZH product category filter will not work. Please check below images.

no filtered products.png
when apply the Flammable filter, the products will not show.png
the metabox values are translated.png
May 16, 2023 at 8:25 am #13653229

michaelS-282

Hello Mohamed, are you working on this?

May 16, 2023 at 9:15 am #13654061

Mohamed Sayed

Hi Michael,

I made many tests but I couldn't find any workaround for this one, I also tested the latest version of JetEngine and the issue persists.

I've escalated this issue to our 2nd tier support developers and will update you once I get their reply.

May 16, 2023 at 9:36 am #13654431

michaelS-282

Ok, thank you. I will keep close to this ticket.

May 16, 2023 at 2:29 pm #13657463

Mohamed Sayed

Hi,

It seems like a compatibility issue and the ticket was escalated to our compatibility team for further investigation.

I will keep you posted on any updates or workaround from our team.

Thanks,
Mohamed

May 18, 2023 at 3:40 am #13668833

michaelS-282

Hello, is there any update about this issue? Our clients is pushing us on this! Please update.

May 18, 2023 at 10:46 am #13671075

Mohamed Sayed

Hi Michael,

Our compatibility team is still working on this issue but we don't have any updates yet. Please note that the compatibility tickets can take a while to resolve. Sometimes it requires active collaboration with the other plugin's authors.

I will update you as soon as I have some news.

Kind regards,
Mohamed

May 21, 2023 at 2:24 pm #13684943

Mohamed Sayed

Hi Michael,
Thanks for your patience!

It seems that we need to apply a couple of workarounds in order to solve this issue. Please try the following:

1. Go to WPML > Settings > Custom Fields and set the custom field (portable-detector-gas-type) to "Translate".

2. You need to apply this workaround as the custom fields values are not being copied for the translated product and we need to manually set them:

- Go to WPML > String Translator and translate the strings from the "Jet Engine Admin Labels" to the other languages (Spanish and German)
- Edit the original product, do a small modification and save it
- Translate the product (or update the translation) using a translation editor
- Edit the translated product using the manual editor by editing the original product then switching the language from the top admin bar. Note that the checkbox strings are correctly translated on back-end (hidden link)
- Check the translated checkboxes and save
- The strings will be translated on front-end now

3. Finally, open wp-content\plugins\jet-smart-filters\templates\filters\radio.php file and add the add the following snippet at line 46, after the foreach:

//WPML Workaround
        if (class_exists('SitePress')) {
            $label = apply_filters('wpml_translate_single_string', $label, 'Jet Engine Admin Labels', 'Admin Label - '.$label );
            $value = apply_filters('wpml_translate_single_string', $value, 'Jet Engine Admin Labels', 'Admin Label - '.$value);
        }
        //End of Workaround

I tested this on the sandbox site with one of the products and the fields are translated also the filter works now.

Let me know please if that helps.

Regards,
Mohamed

Screenshot_213.png
May 22, 2023 at 12:27 am #13685627

michaelS-282

Hello Mohamed,

I will try and get back to you.

Thank you

May 22, 2023 at 8:05 am #13687027

Mohamed Sayed

Hi,

Take your time, I will be waiting for your feedback.