LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Language support

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.

Regards
Vipin Kumar
0 Kudos
Message 1 of 5
(3,057 Views)

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?

0 Kudos
Message 2 of 5
(3,026 Views)

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.

Add 273 on whatever Celcius said.
-Kelvin
0 Kudos
Message 3 of 5
(2,991 Views)

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

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 5
(2,964 Views)

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

0 Kudos
Message 5 of 5
(2,668 Views)