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

Last updated by Bobby 10 months ago.

Assisted by: Bobby.

Author Posts
July 25, 2024 at 10:55 am #16003106

michaelS-302

Background of the issue:
I was experiencing an issue with the translation of a radio meta field using 'Manual Input' in Crocoblock. The issue concerns the meta field 'kuenstler_instrument' of the Custom Post Type (CPT) 'kuenstler'. WPML was not translating the field options correctly. While the German version works perfectly, the English version does not translate the field options. I have already contacted the Crocoblock Support regarding this issue. They gave me the following instructions: For multi-optional fields like Radio, Checkbox, and Select, we need to use another approach by creating a glossary: hidden link Glossaries in our context are simply sets of value + label pairs that can then be used as a source of options for meta fields, form fields, and filters. To use glossaries in custom fields, check out this tutorial: hidden link We also need the glossaries to translate the meta fields. Follow this step-by-step guide: 1. Here is the glossary - hidden link Note that you need to format the option values correctly - use only lowercase letters in Latin with no spaces. You can separate words with dashes and underscores. 2. Meta field of the glossary - hidden link 3. Then, proceed to string translation and translate the meta field's label - hidden link 4. Add the translation for the glossary options (only their labels!) - hidden link Here is the translated meta field hidden link

Symptoms:
The string translation is not working. The languages are mixed up. Some German words are shown in the English column and vice versa.

Questions:
What is the issue with the string translation?
How can I resolve the issue of mixed-up languages in the translation?

July 28, 2024 at 8:03 am #16011762

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.

The instructions from Crocoblock support are accurate. Ensure the 'Save as array' option is enabled for the translation to appear correctly. If everything is configured as per the Crocoblock instructions, the translation should display properly on the frontend. If translations are mixed across languages, use String Translation to set the correct language and translate the text accurately.

Based on your screenshot, some strings in other languages are set to English. Change the source language of these strings and translate them using this guide: https://wpml.org/documentation/getting-started-guide/string-translation/how-to-change-the-source-language-of-strings/.

Please carefully follow all the instructions and I hope they will help. Please feel free to reach us if you need further assistance, we wilkl be happy to help.

Best regards,
Prosenjit

July 28, 2024 at 9:06 pm #16012621

michaelS-302

Hello,

Thank you for your response. I think I could solve the String Translation issue.

It now appears correctly in the backend, but there are still issues on the front end form. Therefore, I believe this might be a Crocoblock issue.

Backend:

German Version:
[hidden link)

- See Screenshot1

In the backend, the musical instruments are displayed correctly in German.

English Version:
[hidden link)

- See Screenshot2

In the backend, they are also displayed correctly in English.

Front End:

German Version:
[hidden link)

- See Screenshot3

English Version:
[hidden link)

- See Screenshot4

However, on the front end form, the musical instruments are still displayed incorrectly. In the English version, they still appear in German.

What could be causing this issue?

Thank you for your assistance.

All the best,
Michael

Screenshot4.png
Screenshot3.png
Screenshot2.png
Screenshot1.png
July 31, 2024 at 10:57 pm #16027151

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

August 2, 2024 at 8:14 pm #16034752

michaelS-302

Hi Bobby,

many thanks for your message - fortunaty the issue could be resolved.

All the best,
Michael