LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A way to translate UI

Hello

 

A request came from above that UI for our machine should be translated to Chinese, it's currently in english.

 

Is there an easy way to do this fast, other than manually replacing all the text?

Most of the control names on UI are just text, rather than control names themselves.

0 Kudos
Message 1 of 15
(2,048 Views)

Use caption on FP instead of Label, and make a dictionary file for language update.

You could update the caption with control reference.

 

And you also can fine a tool called "LCE".

Message 2 of 15
(1,874 Views)

I always wanted to try this but never needed to. So I tried it for you, see attachment.

I don't know how good those config vis handle special characters. Notepad++ said the created file is UTF-8, may it can be changed?

 

But please don't see this as a solution, it's just an idea I came up with and did it in 20 min, it needs to be optimized, especially error handling!

 

Timo

 

addition: Carefull with translating just the ini text file, context may be lost.

0 Kudos
Message 3 of 15
(2,006 Views)

I'd also be interested in the idea you came up with, Timo.

Would you care to post the VI in an older version, LV20 or lower?

 

Thanks.

Stefan

0 Kudos
Message 4 of 15
(1,998 Views)

2019 or lower for me, please 😄

0 Kudos
Message 5 of 15
(1,989 Views)

Here is the VI saved for LabVIEW 2019 and 2018.  Saving for LabVIEW 2017 reported an error, which I didn't examine closely.

 

Bob Schor

Download All
0 Kudos
Message 6 of 15
(1,978 Views)

Thank you Bob,

 

the front panel elemen "knob" does not exist in LV17, so it ist just missing in that older vi, shouldn't matter.

 

Timo

0 Kudos
Message 7 of 15
(1,972 Views)

@t.n14 wrote:

I always wanted to try this but never needed to. So I tried it for you, see attachment.

I don't know how good those config vis handle special characters. Notepad++ said the created file is UTF-8, may it can be changed?

 

But please don't see this as a solution, it's just an idea I came up with and did it in 20 min, it needs to be optimized, especially error handling!

 

Timo

 

addition: Carefull with translating just the ini text file, context may be lost.


Of course, often you want to translate more than just labels (see attachment)

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 8 of 15
(1,930 Views)

You will need Unicode to display Chinese.

NI provides limited support for Unicode:

https://forums.ni.com/t5/Reference-Design-Content/LabVIEW-Unicode-Programming-Tools/ta-p/3493021?pro...

 

 

George Zou
Message 9 of 15
(1,920 Views)

@zou wrote:

You will need Unicode to display Chinese.

NI provides limited support for Unicode:

https://forums.ni.com/t5/Reference-Design-Content/LabVIEW-Unicode-Programming-Tools/ta-p/3493021?pro...

 

 


The only thing you really need is the line

UseUnicode = "True"

in "labview.ini".

The the stuff in that package may be handy, but it's not essential.

"If you weren't supposed to push it, it wouldn't be a button."
Message 10 of 15
(1,913 Views)