Is it possible with labview to do a multi-languages application? I want the user to be able to select language in the execution menu, then, it will translate all label with languages information from a configuration file.
I know haw to use configuration file, but i don't know how to change all label easily.
"jm" wrote in message news:3e2e75cc$0$226$626a54ce@news.free.fr... > Hi, > > Is it possible with labview to do a multi-languages application? > I want the user to be able to select language in the execution menu, then, > it will translate all label with languages information from a configuration > file. > > I know haw to use configuration file, but i don't know how to change all > label easily.
The easiest way is to make a recursive vi. This vi would read a configuration key, e.g. viname.tabname.clustername.controlname= "some text". The recursive vi must look for the viname. Then it should get all objects, and find a refernce to the tabname. Then it should find all names (on the tab) again, and find the clustername. Then it should find all name s (in the cluster) and find the control name.
In pseudo code:
for all keys in the section of the selected language: ref= vi ref of the first name while there are names in the key get all controls that are in ref find the ref with the proper name endwhile set the name of the reference to the name in the key endfor
Regards,
Wiebe.
> Can anyone help me? > > Regards, > Jean-Michel. > >
>I want the user to be able to select language in the execution menu, then, >it will translate all label with languages information from a configuration >file.
Don't show the "Label Name" but use "Caption" instead. Then programatically change the property "Caption Text" corresponding to your translation configfile.