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 11 months ago.

Assisted by: Mohamed Sayed.

Author Posts
May 13, 2023 at 10:13 am #13640279

michaelS-282

Tell us what you are trying to do?

I want to translate the jet smart filters check fields on Chinese simplified page and Russia page. Please check the 1st image.

The jet smart filters data source is from the jetengine custom meta boxes fields. I have enabled jet smart filters translatable, and translated them into Chinese. But the smart filters fields are still in English.

Please check.

Is there any documentation that you are following?

hidden link

hidden link

Is there a similar example that we can see?
not yet

What is the link to your site?

hidden link

May 13, 2023 at 10:48 am #13640509

michaelS-282

Please check the images.

3- meta boxes option label.png
2- the jet smart filters backend.png
1- the chinese language is not translated.png
May 14, 2023 at 1:20 pm #13643067

Mohamed Sayed

Hi Michael,
Thanks for contacting WPML support, I will be glad to help you.

I think this is caused by a known issue between WPML and JetSmartFilters, could you please create a full backup then try the workaround mentioned in the following errata page?
https://wpml.org/errata/jetsmartfilters-smart-filters-custom-fields-are-not-translated-in-secondary-languages/

Let me know please if that helps.

Regards,
Mohamed

May 14, 2023 at 3:37 pm #13643505

michaelS-282

I already tried this method, but it does not work. You can check hidden link

After change the files, I still can not locate the checkbox fields in the wpml string translation.

I can provide the login credentials and FTP accounts if you need.

Thank you

so the second language checkbox fields are still enlish, please check below images.

wpml issues.png
May 14, 2023 at 4:39 pm #13643583

Mohamed Sayed

Hi,

Please provide me with temporary access (WP-Admin and FTP) so I can investigate this issue further.
– preferably to a test site where the problem has been replicated if possible –

Your next answer will be private, which means only you and I have access to it.

❌ Please backup your database and website before providing us with access details ❌

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Kind regards,
Mohamed

May 14, 2023 at 10:25 pm #13644013

michaelS-282

hidden link

The jet smart filter is radio filter, and the data source is from jet engine meta boxes: portable detector features, it can be searched in the string translation, but
1. the orignal language is in Chinese.
2. there is no meta boxes label, only the options and key.

there is no meta boxes labels in the wpml string translation.png
meta box 6.png
May 15, 2023 at 7:11 am #13644855

michaelS-282

Hey, is anyone working on this ticket?

May 15, 2023 at 8:51 am #13645981

Mohamed Sayed

Hi,

I checked the site and found the following:

- The Filter and product archive template are already translated.
- Correcting the source language of the meta box strings didn't help (https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/).
- The taxonomies were not translated but adding the translation also didn't help.
- I couldn't find the labels with String Translation

I have created this clean sandbox setup on our servers here:
hidden link (one-click login)

I would need you to please set up WPML + the WPML add-ons as you have them on your site (they are already installed) and to also install the JetSmartFilters plugin and try to recreate the issue.

Please don't migrate your site or install anything else like plugins that are not necessary, on a clean sandbox we try to use just the WPML plugins and the plugin/theme that's part of the issue.

If the issue is going to take place on this clean setup on our servers too, then I can forward this to our compatibility department.

Please let me know how that goes and what you are able to find.

Screenshot_187.png
Screenshot_188.png
May 15, 2023 at 8:53 am #13646031

michaelS-282

Please wait, I will do now.

May 15, 2023 at 8:54 am #13646037

Mohamed Sayed

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

May 15, 2023 at 12:35 pm #13647947

michaelS-282

Hello, I have copied the problem in the demo site.

1. Below is the EN product category page, with jet smart raido filters.
hidden link

2. Below is the ZH product category
hidden link

As you can see, there are 2 places to be translated.

1. The checkbox values above the product title. This is built with jet engine listing, with the dynamic field.

2. The jet smart filters radio filter fields. The filter label has been translated.

Please check and get asap, we missed the final delivery date. customer is pushing.

Thank you

demo sites 2 places need to be translated.png
May 15, 2023 at 1:57 pm #13648667

michaelS-282

Hello Mohamed, are you working on this issue?

May 15, 2023 at 5:58 pm #13650433

Mohamed Sayed

Hi,
Thanks for your patience!

Please create a full backup then try the following workaround:

1. Open the file wp-content\plugins\jet-smart-filters\templates\filters\radio.php
2. Find the following code at line 45:

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

3. Add the following code after the above line:

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

4. Search again for the labels in WPML > String Translation and translate it
5. Check the labels on the front end

I've tested the workaround on the sandbox site and it works as you can see here hidden link

Let me know please if that helps.

Regards,
Mohamed

Screenshot_190.png
May 15, 2023 at 9:08 pm #13651347

michaelS-282

Hello Mohamed, I see the jet smart filters fileds are translated, but as you see on the demo zh product category, there is still EN checkbox value fields from single products backend. please check below image.

the  checkbox values are still not translated.png
May 15, 2023 at 9:12 pm #13651371

michaelS-282

It is from Jet engine portable detector listing, the meta fields are from Portable Detector Gas Type → checkbox fields values. please check

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