LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-languages labview application

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.

Can anyone help me?

Regards,
Jean-Michel.
0 Kudos
Message 1 of 3
(2,993 Views)
Hi,


"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.
>
>
0 Kudos
Message 2 of 3
(2,993 Views)
On Wed, 22 Jan 2003 11:45:16 +0100, "jm" wrote:

>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.

Good luck, Peter
0 Kudos
Message 3 of 3
(2,993 Views)