Showing results for 
Search instead for 
Did you mean: 

Change language dynamically in cvi

Go to solution



I'd like to know if it is possible to dynamically change the uir language from English to Russian ?


I have a program written in cvi and I must be able to scwitch the user interface   from English to Russian when the user clicks on a button ...


Thanks in advance

0 Kudos
Message 1 of 6
Accepted by topic author Yazid

Yes: You need to create a language resource file and then can use the functions LoadLocalizedPanel / LocalizePanel and LoadLocalizedMenuBar / LocalizeMenuBar


0 Kudos
Message 2 of 6

Thank You


I'm going to try in a short program.

Do you know if some examples exist for these functions? 



0 Kudos
Message 3 of 6

You can always try the NI Example Finder that comes with CVI: running it on localize returns intgraph.cws: This example demonstrates how to use the User Interface Localization Tool (localui.fp). This example translates the user interface into German, English or Czech using language resource files from the User Interface Localizer utility.


Good luck.

0 Kudos
Message 4 of 6

Yes, this example is useful, but I don't know if it is possible to translate from english to russian on the fly; because with this example the uir with associated language fileis loaded once at the beginning of the program. 

0 Kudos
Message 5 of 6

Well, of course the translation needs to be done before running the program Smiley Wink


In the answer above I mentioned the functions LocalizePanel and LocalizeMenuBar - these do exactly what you want... they load a (possibly different) language file for a panel / menu loaded earlier.

0 Kudos
Message 6 of 6