03-16-2023 08:50 AM
Hello guys
I am translating the elements of my front panel into several languages using their keys and Booleen text.
Solved! Go to Solution.
03-16-2023 08:58 AM - edited 03-16-2023 08:59 AM
Question 1 is a control. Not sure what you mean by "How can I get the text back?"
- you can read the control
- you could turn it into an indicator
- for both, control and indictor, you can create a property node for the text property to either read or write the text
03-16-2023 09:20 AM - edited 03-17-2023 06:12 PM
All the magic seems to happen in the subVIs, but we are missing all of them. Are they from a toolkit?
The string in the question 1 control is just the "value". To write to a control you would use a local variable or set the value property via reference..
(Note that you don't need a local variable for the "Date and time" control, because you can place the control in the "language listbox" event and read the new value from the event data node in the "date and time" event.)
03-16-2023 10:42 AM
A little off topic but for your information, please check your translation to french in your dictionary.
Some of them are not accurate.
03-17-2023 04:52 PM
Hello MaSta,
Thanks your for reply.
Yes I wanted to read the control and translate it. I applied what you and @altenbach told me and it works now.
Thank your very much for your help.
03-17-2023 04:58 PM
Hello @altenbach,
Thanks for your answer and help.
Yes, the VIs come from the JKI Simple Localization toolkit.
I applied what you told me and also mySta and so I was able to do what I wanted.
And thank you also about the local variable.
Have a nice weekend 🙂
03-17-2023 05:04 PM
Hello @Defaphe
Thank you for your answer, yes indeed you are right.
I'm currently doing an internship and I couldn't post the project so I created this quick vi that reproduces my problem to ask my question.