Skip Navigation

[Resolved] Translate select custom fields in toolset with wpml

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

Problem:
How to translate the options of a Types select field using WPML?

Solution:
Select fields have a value, which is what is stored in the database, and the display text, which is what is shown in the dropdown (and typically what is output when you show this field in a template).

You cannot translate the value.

You can translate the display text using WPML String Translation.

In String Translation search for the display text you want to translate, and translate it.

Now when you edit a post in the backend in the second language, you should see the translation of the select field display texts.

Also, when you output the display text of this field on the front end you should see text in the appropriate language.

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Nigel 6 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#1089241
select_custom_fields_2.JPG
select_custom_fields_ts_einlass.JPG
Select_custom_field.JPG

I like to translate select cutome fields in toolset only once. I use wpml. Where can I translate the select custom fields? I have Post Types the name is "Produkt". After I will have prepared everything also with translation, I will importing all data with " wp all Import" plugin. The import with out translation I have allredy tested successful.

#1089470

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-08-22 at 14.18.18.png

Hi there

Select fields have a value, which is what is stored in the database, and the display text, which is what is shown in the dropdown (and typically what is output when you show this field in a template).

You cannot translate the value.

You can translate the display text using WPML String Translation.

In String Translation search for the display text you want to translate. In my screenshot you can see I have created a translation for the display text "Second choice" from a select field on my site.

Now when I edit a post in the backend in the second language, I see the translation of my select field display texts.

Also, when I output the display text of this field on the front end I see text in the appropriate language.

#1090091
select_customfield-for-string-translation.JPG
String-translation.JPG

I allredy found this string translation. In my case for exampel German language "hart dichtend" it has to tranlate to english "hart sealing". My main language on this page is German. Why is the simbol english flag and not german flag in string translation. How and wehre can I translat to English? Is this a System fault or I have set wrong setting?

#1090164

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-08-23 at 10.12.58.png

If String Translation has found the string but wrongly identified it as English (when it is German and you want to make an English translation), go back into String Translation and search for the string again.

In my screenshot you can see that when you select the string you then have the option below to "Change the language of selected strings".

So you should be able to tell String Translation that the string is actually German, and once you do it should be possible to provide an English translation.