Skip Navigation

[Resolved] multilingual field

This support ticket is created 5 years, 3 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 7 replies, has 2 voices.

Last updated by davidm-13 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1345509

Hi, I would like to create and store as a single field a multilingual string.

Example: אבגד Abcd - The left 4 characters are Hebrew an rtl language.

Is there any problem storing the above example as a single field - for instance how would it sort?

Thanks for your help
David

#1345729

Dear David,

The custom single line field can store the multilingual text.

For the question: for instance how would it sort?

For example there are two posts with single line field values:
- אבגד Abcd
- אגבד Abcd

It will be sorted by left Hebrew first.

#1345837

Thanks Luo for the reply
This field will contain the name in Hebrew and its English phonetic pronunciation. There can be several names, I want to list each Hebrew name and its English phonetic on a separate line, can I use a custom single line field or do I need another field type?

Thanks
David

#1345913

In your case, I suggest you try with two single line fields, for example:
- Hebrew name
- English phonetic pronunciation

So you can:
- Order the result by "Hebrew name" field or "English phonetic pronunciation" field.
- Display the above two fields separate lines easily.

#1345919

I really want them in one field, the sorting is not important as long as the Hebrew and English phonetic are together in one string.
Thanks
David

#1345937

I assume we are talking about this:
In a single line field, you are using below field value:
אבגד Abcd

In front-end, you are going to display the value as separate lines, like below:
אבגד
Abcd

If it is, there isn't such kind of built-in feature within Toolset Types plugin, Types shortcode can only output the field values, it can not add the separate lines.

You might consider other workaround, for example, put HTML codes into the single line field value manually:

אבגד <br> Abcd

Then display above single line field with Types shortcode:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield

More help:
hidden link

#1346159

Hi Luo,
I want them in 1 field on the same line, so I can display them in a list box and don't have to worry about matching the styles.
Here's an example of how I want it to appear
hidden link

If it was 1 string I wouldn't have to worry about lining up the text or worrying that the phonetic matched the Hebrew text.

Thanks
David

#1346247

My issue is resolved now. Thank you!