LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a multilanguage aplication

I'm developing a system that's going to be deployed for several countries.

I've found a way to rename the caption using a for cycle and the property. But I've 300 controls and this process can take about 3 seconds.

In spite of that, if I've a tab control, the situation become complicated.

Does anybody knows a faster and simplest way to do this?

Best regards
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 1 of 8
(3,684 Views)
You might want to go with the VI methods "VI Strings.Export" and "VI Strings.Import". Export will grab all visible strings out of your VI and put them into an XML file, import vice versa. These functions were built for localization, so they won't miss a string on your VI.

Hope that helps,
Herbert
Message 2 of 8
(3,674 Views)
And if you have a cluster on the tab control, it can get really messy.

I am using the same approach that you have described. But I only have 170 controls. If there is a better one, I am interested also.

Two things I have learned that may be of assistance:

1) Using the ClassID rather than the Class Name to identify the complex objects like clusters and tabs was recommended by someone from NI on a Forum posting some time ago. The indiciation was that Class Names could possibly change between versions, whereas the Class ID was less likely to change.

2) You must manually make the Caption Visible before calling the property to write a new value to it. Otherwise you get an error.

Lynn
Message 3 of 8
(3,673 Views)
Can you do an example with that?

I'm using labview 8.2.1
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 4 of 8
(3,668 Views)
Thanks for tips guys.

But I think that I should wait for a simpler approach from NI.

Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 5 of 8
(3,667 Views)
Message 6 of 8
(3,662 Views)
thanks
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 7 of 8
(3,663 Views)
You're welcome. Don't forget to rate a good answer Smiley Wink
Herbert
0 Kudos
Message 8 of 8
(3,657 Views)