MultiLingual Lists

Discuss issues and ideas you have to configuring displays with PowerVision
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

MultiLingual Lists

Post by asmith_class1 » Thu Aug 13, 2015 2:31 pm

I've started here:
viewtopic.php?f=7&t=1033&p=2743&hilit=list#p2743

How could I now make a list multilingual? Or is this just something I can't do at this time?

Thanks, in advance.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: MultiLingual Lists

Post by stalley » Thu Aug 13, 2015 2:51 pm

Hello asmith_class1,

Is your display reading text that you want to translate at run time? Or do you have known text that you have translated and you want to use a list to manage the text?

The first, you will need to write a config that is a translator. The second is very similar to how the text for the DM1 and DM2 lists are handled.
Sara Talley
Software Engineer
Enovation Controls
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

Re: MultiLingual Lists

Post by asmith_class1 » Thu Aug 13, 2015 3:09 pm

it's all known text. so to follow DM1/2 style i would have to make DTC's with the strings I want?
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: MultiLingual Lists

Post by stalley » Thu Aug 13, 2015 3:18 pm

Hi,

Sorry, no, you don't need to use the DTC Setup database. You can use the lists and events as a model. You will need to create your own.

It seems to me you would have a column as a CharArray for each language with as many rows as you have text strings.
Sara Talley
Software Engineer
Enovation Controls
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

Re: MultiLingual Lists

Post by asmith_class1 » Thu Aug 13, 2015 3:26 pm

just to verify what you're saying, I would need to have a column per language? I was hoping to achieve something similar to how the DM messages work in the DTC Setup so that I could edit the font groups per language and easily change the languages via the languageSelector variable.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: MultiLingual Lists

Post by stalley » Thu Aug 13, 2015 3:44 pm

I think we are talking about the same thing.

The column number is the language selector and the row is the text.

The text could be in a two dimensional array to initialize the list.

Perhaps other users might have some suggestions.
Sara Talley
Software Engineer
Enovation Controls
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

Re: MultiLingual Lists

Post by asmith_class1 » Fri Aug 14, 2015 9:35 am

So I believe I understand what you are saying to do, But is there a way that I could use language specific fonts with it?

so would it be possible to change the language via the languageSelector variable and then select from my List appropriately and then the font will be applied to it?

Thank you for your patience with me :)
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: MultiLingual Lists

Post by stalley » Fri Aug 14, 2015 9:54 am

Hmmm, I guess I don't understand. Do you want to enter the text as a one dimensional array and then based on the language selector the text gets translated?
Sara Talley
Software Engineer
Enovation Controls
asmith_class1
Posts: 15
Joined: Tue Jan 18, 2011 8:10 am

Re: MultiLingual Lists

Post by asmith_class1 » Fri Aug 14, 2015 10:27 am

Well based on your previous suggestion I'm putting all the text into the List, now we here like using different fonts depending on the language being used. What I'm trying to do now is preserve the ability to use whichever font with whichever language instead of locking everything into 1 font.

so an example would be that I set the language from English to Chinese and then set the Text Widget to the appropriate text from my list. Would that then apply the font I've set for Chinese to the Text Widget I just wrote to?
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: MultiLingual Lists

Post by stalley » Fri Aug 14, 2015 10:53 am

Your script would need to decide what text to set into the TextWidget based on the language selector.
Sara Talley
Software Engineer
Enovation Controls