MultiLingual Lists
- asmith_class1
- Posts: 15
- Joined: Tue Jan 18, 2011 8:10 am
MultiLingual Lists
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.
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
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: MultiLingual Lists
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.
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
Software Engineer
Enovation Controls
- asmith_class1
- Posts: 15
- Joined: Tue Jan 18, 2011 8:10 am
Re: MultiLingual Lists
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
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: MultiLingual Lists
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.
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
Software Engineer
Enovation Controls
- asmith_class1
- Posts: 15
- Joined: Tue Jan 18, 2011 8:10 am
Re: MultiLingual Lists
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
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: MultiLingual Lists
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.
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
Software Engineer
Enovation Controls
- asmith_class1
- Posts: 15
- Joined: Tue Jan 18, 2011 8:10 am
Re: MultiLingual Lists
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
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
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: MultiLingual Lists
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
Software Engineer
Enovation Controls
- asmith_class1
- Posts: 15
- Joined: Tue Jan 18, 2011 8:10 am
Re: MultiLingual Lists
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?
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
- Posts: 618
- Joined: Tue Mar 18, 2014 12:57 pm
Re: MultiLingual Lists
Your script would need to decide what text to set into the TextWidget based on the language selector.
Sara Talley
Software Engineer
Enovation Controls
Software Engineer
Enovation Controls