11-05-2017 02:08 AM
I have created a application in English.
1) I want my labels to be displayed in Chinese
2) My application generate some report , i want that complete report to be translated in Chinese language.
11-05-2017 07:07 AM
We'll need more information then that.
Do you want to change the labels during editing? Or do you want them to change while the vi is running? The latter can't be done, you need to use the captions. Or stop the vi and change the labels with vi server from another video (not recommended).
To support Chinese in LabVIEW, you need to use a font that supports Chinese (the system font will probably do). The system (or at least the application) needs to run with a Chinese code page. And you need a way to type the Chinese characters.
Alternatively, you can ty LabVIEW's rudimentary Unicode options. I don't have any experience with that.
Recommending about the report is near impossible. Is it a text report? Or a report on screen? An Excel report maybe? PDF? It could even be a spoken report... Without any hint, everything is possible.
You mention that you want the report to be translated. Are you looking for someone to actually do the translation?
11-06-2017 12:58 AM
Hello Vipin,
I have a program that is having language switching option. I made this program by considering "Property Node-Caption-Caption Text". To do that;
1- You have to choose Caption option for each of your corresponding controls/indicators instead of label.
2- You have to caption the controls/indicators name both in English and Chinese as I have shown in the attached VI for your reference.
P.s. You gotta mind the memory usage. I put the coresponding property nodes in a While Loop for your reference but that is just for an example. Do not put all of your property nodes and update the caption for every 100ms that will cause some race conditions. Instead, try to use something like Queue or State Machine protocols.
11-06-2017 11:50 AM
We use .INI files (one per language supported).
Each .INI file has a [Common] section, and also a project specific section.
The common section (LANGUAGE_EN.ini) has things like:
GO = "Go"
Hello = "Hello"
Help = "Help"
Incorrect password prompt = "Incorrect password, please try again."
whereas the chinese file (LANGUAGE_zh-CN.ini) would have:
Hello = 你好
The project specific section (english) has prompt messages; e.g.:
1. Disconnect waste tank from system = "1. Disconnect waste tank from system"
For using Unicode config files, see Unicode Config.Ini Files
10-09-2018 09:17 AM
Hey Vipin!
If this issue is still relevant for you have a look on this Language Support toolkit by RAFA Solutions, it will help:
https://rafasolutions.com/products/labview-experience/labview-toolkits/4/language-support-toolkit