05-12-2010 09:09 AM
Hi,
I am writing a multilingual supported application in labview. I understand how to use export and import string file functions and make a multilingual application with those methods. But I want to be able to change the language at runtime. Is there a way to use those two methods at runtime? Or How can I write a multilingual application whose language can be changed at runtime with another way? Please help me to do that.
Thanks in advance,
Mehmet.
05-12-2010 09:23 AM
I wrote some vis in the past to use a lookup file and change captions, boolean text, free lables, string constants (handled seperatly).... using property nodes, it worked well but was a pain (I was able to support 5 languages). There are several ways to do this.
The main thing I learned, USE AS LITTLE TEXT AS POSSIBLE. Keep your messages short use icons and pictures, and anticipate that the length of strings are very different in other languages (ie a short booleana text on a button might not fit in Geman).
There is a third party toolkit out there but I have not used it so I cant give much help here.
I also learned to budget a good amount of time for this task.
05-13-2010 02:02 AM
Thanks for your helps falkpl. But I couldn't get an exact answer to solve my problem. I think this is a fundamental subject on developing software. Isn't there a standart way on making multilingual application in Labview? Please help me.
05-13-2010 07:52 AM
See this note on using vi strings.
There are some nice notes about default string controls instead of string constants and other pitfalls of using the import strings method.
http://zone.ni.com/devzone/cda/tut/p/id/3603
05-13-2010 09:55 AM
mehmetned wrote:Thanks for your helps falkpl. But I couldn't get an exact answer to solve my problem. I think this is a fundamental subject on developing software. Isn't there a standart way on making multilingual application in Labview? Please help me.
It is hard to give an exact answer to a general question.
With the exception of the label (fixed can't change use caption instead) all of the text associated with all of the object on the FP can be set using propert nodes assocaited with every object.
So...
For every object on your FP you must select the proper set of strings and apply them to the appropriate controls/indicators.
In my case I use an sub-state of my init code to run through all of the strings and set them before the app starts running.
A word of warning about the export import approach...
When last I checked, a small change to the GUI means going back to page one.
Have fun,
Ben