Hi,
How do you get the language of the installed Windows? ie; Germany, French, Spanish, English and etc.
Thanks in advance for any suggestion.
Printable View
Hi,
How do you get the language of the installed Windows? ie; Germany, French, Spanish, English and etc.
Thanks in advance for any suggestion.
Unfortunatly all the API and references to Locales that I have seen only aloow you to enumerate the current locale or check for supported locales not to change them.
but check out http://www.mvps.org/vbnet/ or www.allapi.net
K i must have missed something here...you would like to find out what version of windows is installed? Language wise? Well that would be retrieving keys from the registry. If my old (18 year old) mind hasen't slipped me yet. You would look at the HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\Nls\Locale Key and there is value there that will tell you what language is installed. First you would look at what the "default" key Name value is and then using that value you would retrieve the language that is stored for that value and that would be the language that windows is using. I know this sounds confusing but it should help you.
I won't provide you with the code, but if you realy need it, just ask and i will post it.
Gl,
D!m
Thanks for your replies.
rudvs2, no I don't want to change or modify the setting. All I need to do is to know the language type of installed Windows.
Dim, are you suggesting that there is no API call or any other way of getting this info other than reading it from Registry?
In that case, thanks I'm fine and should be able to come up with the code.
Just finished checking my Win2K machine and figured that it seems to be more confusing that Win95. It does not seem to be as easy as Win95 if you want to check the Language type from there.
So, I believe there should be a better of getting this than directly reading it from Registry, ie; more Programmatically.
don't know for sure if there is an API or not...but reading it from the registry is a sure way.