05-17-2006 10:02 AM
05-17-2006 10:49 AM
The NI approved way is to use Import / Export Strings. If you need to convert it just for the operator than you maybe able to get away with most chages to the top level VI. If you need to convert it for engineering and editing of the VI, then there is a lot of work to be done.
You need to have all of the Text to convert as a Caption! It will not convert Labels. I would recommend building a VI to help the person translate the code instead of working directly on the XML file. It is not a trivial process translating an application.
Matt
05-17-2006 01:32 PM
Thanks a lot.
I am still thinking using excel file or txt file with each column representing differenting language. For example, we can combine all control with english caption in first column, french in second column, and chinese in third column. When the application is loading, it check the configuration ( can be just a ini file) to see what language should be used, then load the corresponding column and then using property node to change the control property. I am not sure if this method works and how to index the controls and indicatiors.
05-17-2006 01:41 PM
A few final cautions. Do not convert the language until the application is done otherwise you will have to resolve a bunch of differences between the files. NOT Fun. The Excel idea sounds feasible and may be a good Idea for multiple languages. Another advantage of your idea to use Excel is you could change the labels at runtime. You can’t import strings at run time that is a big weakness with this function. This results in having to build multiple applications, one in each language. Don't forget to enable the language support for the installer. For some reason they don't support Spanish that is an issue I am having.
Keep us posted on how it goes.
Matt
05-19-2006 11:19 AM
Thanks a lot, Matt. I will keep post.
DJ
05-22-2006 04:21 PM
05-22-2006 04:26 PM
It doens't hurt to try. Let me know how it goes. From the table below I do not think it will work.
Matt
The following table lists the characteristics of this method.
| Settable when the VI is running | No |
| Need to authenticate before use | No |
| Loads the block diagram into memory | Yes |
| Remote access disallowed | No |
| Loads the front panel into memory | Yes |
| Must wait until user interface is idle | Yes |
| Available with control VIs | Yes |
| Available with global VIs | Yes |
| Available with strict type definitions | No |
| Available with polymorphic VIs | Yes |
| Available in Run-Time Engine and Real-Time Operating System | Yes (Read/Write) |
08-21-2006 01:27 PM
08-22-2006
10:45 AM
- last edited on
11-25-2025
04:15 PM
by
Content Cleaner
michenglaoxu,
Please see the following post, as well as How Can I Use Chinese Characters in LabVIEW on Windows XP?, perhaps it can help also note the following excerpt from Localizing Your LabVIEW Application to Different Languages:
"You do not need to have a specific language version of LabVIEW, such as French, German, or Japanese, to be able to enter display text in that language. LabVIEW supports single and double byte characters, but it does not support bidirectional scripts (such as Arabic or Hebrew).
If you want to display text in multi-byte character sets (such as Japanese, Chinese, or Korean) in LabVIEW, you only need an operating system of the appropriate language or an MBCS-enabled operating system with an Input Method Editor (IME) for the corresponding language. Also, there are several commercially available language kits that you can add on to the operating system."