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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 2 hours, 48 minutes ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
February 12, 2025 at 1:30 pm

Gregor

Background of the issue:
I am working on a site under development and trying to translate custom meta boxes using WPML.

Symptoms:
I have referred to the documentation at https://wpml.org/forums/topic/jetengine-custom-post-types-meta-field-translation/ but it is not working.

Questions:

February 12, 2025 at 2:05 pm
February 12, 2025 at 2:54 pm
February 13, 2025 at 11:36 am #16701453

Gregor

I have done what you asked and put also 1 post type inside english language. in content i leave a message for you what should happend if i duplicate this post.

Thank you.

February 13, 2025 at 7:25 pm #16704282

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you, I was able to reproduce the issue in the testing environment. I've escalated that to our developers and will let you know once I hear from them.

Thank you.

February 14, 2025 at 9:01 am #16705360

Gregor

Ok thank you. But its quite urgent because i cant moving forward on the projet.

February 14, 2025 at 10:13 am #16705668

Gregor

I look on you sandbox and its working on you page. I create new custom post type with same parameters as you got but its not working

February 14, 2025 at 2:06 pm #16706733

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I got feedback from our devs. The issue is that what was being translated was the field value, and not the label. When a value is changed, JetEngine won't keep it's state, as it recognizes that the value is not the same. To have the same result, but to keep the values synchronized across translations, you can follow the steps below:

1. Create the Labels and Values for the checkbox in JetEngine > Glossary (you can have values in lowercase, so it's easier to differentiate them in String Translation, later). Check image attached with example;
2. Inside the JetEngine's Post Type, set the source to Glossary and select the glossary created with the values. Check image;
3. In WPML > Settings > Custom Fields Translations, find the name of the meta field and set it to copy. Check image;
4. Go to WPML > String Translation and make sure that only the Labels are translated. The values should be the same as the original. If you set values in lowercase, it will be easy to differentiate labels and values;
5. Finally, make a small change to the original post that contain the value and update the translation;

That should solve the issue. What was happening, was that we were accidentally translating values. Let me know how it goes.

Screenshot 2025-02-14 at 10.58.21.jpg
Screenshot 2025-02-14 at 10.59.13.jpg
Screenshot 2025-02-14 at 11.00.35.jpg
February 14, 2025 at 5:35 pm #16707677

Gregor

Hello its not working.

I already told you that before. When i click duplicate the value or checkbox isnt checked.

issue.jpg
February 14, 2025 at 5:51 pm #16707739

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

I got that since the beginning, the instructions I sent are precisely to overcome the fact that "when I click duplicate the value or checkbox isn't checked". The issue is that translated checkboxes get unchecked when translated. To overcome that, please follow the steps I shared. If you wish, here's a video explaining it better:
hidden link

We tested and verified this solution. This way the checkboxes value will keep consistent with the original.