LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get the display language of the OS windows 7

How can i read the display language of the OS windows 7 with LabVIEW version 2010?

 

This is set in the control panel of windows 7 , Region and language, formats. Example English (United States)

 

Kind Regards, Ben Arts

 

0 Kudos
Message 1 of 8
(4,053 Views)

I kinda threw this together using MSDN and Windows API just to help you out.

Note I did not bother to rigoriously test it but it should be accurate.

Any problems let me know and I will see what I can do to help Smiley Tongue

0 Kudos
Message 2 of 8
(4,033 Views)

I set the region and language in Dutch but that doesn't work. This also gives back English.

 

I found some information about in this forum: ...Current Language... at date 02-17-2010

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) 

 

I can't find the "adavanced settings in control panel". How must i do that?

 

Kind regards, Ben Arts

0 Kudos
Message 3 of 8
(4,007 Views)

I'd read out the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language\InstallLanguage

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 8
(4,001 Views)

Hello Yamaeda,

That's not what i ask but maybee it's a way to do it.

 

How can you read that registry key in labview2010?

 

Kind regards, Ben Arts

0 Kudos
Message 5 of 8
(3,981 Views)

Hello Ben,

 

Do you want to retrieve the "Default Input Language" or the currently selected "Input Language"?

Based on the replies that's not really clear for me.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 6 of 8
(3,972 Views)

@Ben_Arts wrote:

 

How can you read that registry key in labview2010?

 

 

Connectivity-->windows registry palette

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 8
(3,968 Views)

Read : HKEY_CURRENT_USER\Control Panel\International

 

2010 VI Attached 

 

 

original.png

 

 

 

 

Message 8 of 8
(3,956 Views)