LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make my program support different languages ?

Hi!
How can I make my program support different languages ? I want my program
support French and English together, so the user can change the displaying
content with the two languages. How can I do this ? I use CVI7.0.

thanks !


0 Kudos
Message 1 of 3
(2,988 Views)
Check out the following document

Creating and Shipping a Localized Application Using LabWindows/CVI

Hope this helps
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,977 Views)
Hello,

I do this in the following way.

All relevant texts are stored in char arrays like:

char *text[] = {
{"English"},
{"German"},
{"French"}
};

I have a global variable named "language" which can be set by the user (and is stored in a configuration file together with some other information). Whenever a text is displayed (either in a menu, a title bar, a button or anywhere else) I use SetCtrlAtribute or SetPanelAttribute and select the proper text like:

SetPanelAttribute(panelHdl, ATTR_TITLE, text[language]);

Michael
0 Kudos
Message 3 of 3
(2,960 Views)