01-19-2012 08:52 AM
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
Solved! Go to Solution.
01-19-2012 09:15 AM
Yes: You need to create a language resource file and then can use the functions LoadLocalizedPanel / LocalizePanel and LoadLocalizedMenuBar / LocalizeMenuBar
01-19-2012 09:25 AM
I'm going to try in a short program.
Do you know if some examples exist for these functions?
01-19-2012 09:29 AM
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.
01-19-2012 09:45 AM
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.
01-19-2012 09:59 AM
Well, of course the translation needs to be done before running the program
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.