LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

랩뷰에서 베트남어가 정상적으로 표시되지 않습니다. (How to display Vietnamese on the front panel)

프론트패널 현지화 작업을 하면서 영어/베트남어 표기를 하는데

구글 번역에서 번역된 베트남어를 복사해 랩뷰에 붙여넣으면 글이 제대로 표시가 되지 않네요.

 

베트남어 표기를 해 보신분이나 해결 방법 아시는 분은 도움을 부탁드립니다.

 

------------------------------------------------------------------------------

 

I want to display Vietnamese on the front panel.
However, if you copy and paste the translated Vietnamese, it is not displayed normally.
If you know how to display normally, please teach me.

Download All
0 Kudos
Message 1 of 16
(2,039 Views)

Thank you. CY...

 

It didn't work out in your way.

 

First, Vietnames was displayed, but all other languages were broken.

Second, I added the 'FontCodePageLilst=Small Fonts,1258' code to the LabVIEW.ini file and checked it,

but there was no difference.

 

Is there any other way you know? or any reference?

 

Thanks for your help.

 

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

I don't get what you mean by all other languages broken, can you include a screenshot? have you followed through all the steps in the link accordingly?

 

for the other language, have you retranslate, recopy and paste into the constants again? LV seemed to change the numeric representation of a character (from * to 63) when pasted into LV when the character is not recognized

 

If the above doesn't work properly, you may have to cast the string into u8 before recasting back to string, which will then be displaying properly in the caption

 

hope it helps

CY (expired CLAD)
0 Kudos
Message 4 of 16
(2,000 Views)

The localization string is not loaded from the file, but is set as default in the front panel and used.

 

1. The language used is Korean/English/Vietnamese, and when only Korean/English is input, the value of the front panel

    is displayed normally and there is no problem when running the program.

2. Add the UseUnicode=True line to the LabVIEW.ini file and copy Vietnamese to the front panel, the input works normally,

    but the display of other languages is broken.

3. When running the program in status 2, Korean/English is displayed normally, but Vietnamese is not displayed normally.

 

Attach screenshots.

Download All
0 Kudos
Message 5 of 16
(1,971 Views)

I suspect this could happen, hence repasting all the messages and translation (in correct readable form) may help, to ensure all array elements are of the consistent data types

 

Alternatively, are you familiar with data casting? if yes, try storing the messages/translations as u8 array in clusters instead of strings in the array (or collection). this way you can get same datatype with the tradeoff of readability

 

I have tested it on FP caption only, but never in dialog box, so not sure if it is supported

CY (expired CLAD)
0 Kudos
Message 6 of 16
(1,965 Views)

Is your intention correct to read localized strings from a file and display them via string casting?

 

After encoding the text file in UTF-8 code and saving it, I read it in LabVIEW.
  1. Read from Text file: Both Korean/Vietnamese are broken.
  2. Read from Text file -> UTF-8 encoding: Korean is normal, Vietnamese is broken.

 

mm_0-1656901913926.pngmm_1-1656902040629.png

 

0 Kudos
Message 7 of 16
(1,954 Views)

can you pm me the messages in correct readable form for me to investigate?

CY (expired CLAD)
0 Kudos
Message 8 of 16
(1,950 Views)

you mean a sample file?

 

Download All
0 Kudos
Message 9 of 16
(1,941 Views)

refer this: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000001Dd7fSAC&l=en-MY

 

you have to copy-paste the correct readable constants (with force Unicode enabled) once to the caption for every language you need to display. untested for dialog box

 

based on the looks of things, the following may be the one workaround

 

workaround: for dialog boxes, can consider loading a modal VI with a Boolean control with caption of the message in required language 

CY (expired CLAD)
0 Kudos
Message 10 of 16
(1,932 Views)