Skip Navigation

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

Problem:
You are working on a site under development and trying to translate custom meta boxes using WPML. You have referred to the documentation but found it unhelpful as the translation of custom meta boxes is not working as expected.
Solution:
If you're experiencing issues with translating custom meta boxes in JetEngine using WPML, we recommend the following steps:
1. Create the Labels and Values for the checkbox in JetEngine > Glossary. Ensure values are in lowercase to differentiate them later in String Translation.
2. In JetEngine's Post Type settings, set the source to Glossary and select the glossary created with the values.
3. Navigate to WPML > Settings > Custom Fields Translations, find the name of the meta field, and set it to copy.
4. Go to WPML > String Translation and ensure that only the Labels are translated, keeping the values the same as the original. Setting values in lowercase helps differentiate between labels and values.
5. Make a minor change to the original post containing the value and update the translation.
This approach addresses the issue where values were being mistakenly translated instead of labels, causing JetEngine not to maintain state across translations.

Please note that this solution might be outdated or not applicable to your specific 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. If the issue persists, please open a new support ticket at WPML support forum for further assistance.

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

Last updated by Gregor 5 days, 12 hours 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.

February 14, 2025 at 9:39 pm #16708063

Gregor

We will try.

Thank you.