LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Languages:Current Language" not supported in this version of labview

Solved!
Go to solution

Hi,

    I am trying to change the lables on the Front Panel of my vi, dependant on what Language version of the LabVIEW Runtime enviroment has been installed.

 

In order to check what language I am currently using, I tryed the Property Node class "VI" type "Languages:Current Language". At runtime I was told that LabVIEW does not support this...

 

Is this because I am using LabVIEW Base, or am I missing somthing?

 

Cheers, Alec

0 Kudos
Message 1 of 6
(3,340 Views)

I guess you should use Application.Language instead of VI.Languages. Then you will receive the appropriate string.

Values include en, de, fr, ja, ko, and zh-cn.

 

Andrey.

 

0 Kudos
Message 2 of 6
(3,333 Views)
Great thinking. Only thing it, my first translation language is Dutch:smileysad:
0 Kudos
Message 3 of 6
(3,311 Views)

Unfortunately you will be not able to get Dutch from RunTime, because no Run-Time for this language present (as far as I know)

 

You can get language ID from OS:

 

GetSystemDefaultLangID Function

Language Identifier Constants and Strings

 

Andrey.

 

Message 4 of 6
(3,308 Views)

Yes, that would do the trick. How would I integrate that command with labview?

Cheers, Alec

0 Kudos
Message 5 of 6
(3,305 Views)
Solution
Accepted by alecjcook

alecjcook wrote:

Yes, that would do the trick. How would I integrate that command with labview?

Cheers, Alec


 

Call function from Kernel32.dll:

 

LAngID.png

 

Take a note, that LabVIEW is non-Unicode, therefore you may get langugae ID, which was set for non-Unicode applications (check advanced settings in control panel) 

 

Andrey.

 

0 Kudos
Message 6 of 6
(3,291 Views)