07-15-2022 01:09 AM
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.
07-15-2022 02:26 AM
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".
07-15-2022 07:03 AM - edited 07-15-2022 07:15 AM
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.
07-15-2022 07:28 AM
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
07-15-2022 07:41 AM
2019 or lower for me, please 😄
07-15-2022 07:55 AM
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
07-15-2022 08:19 AM
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
07-15-2022 12:51 PM
@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)
07-15-2022 01:57 PM
You will need Unicode to display Chinese.
NI provides limited support for Unicode:
07-15-2022 03:36 PM
@zou wrote:
You will need Unicode to display Chinese.
NI provides limited support for Unicode:
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.