|
-
Jul 25th, 2001, 10:37 PM
#1
Thread Starter
Member
Locale Setting
Hi,
How do you get the language of the installed Windows? ie; Germany, French, Spanish, English and etc.
Thanks in advance for any suggestion.
-
Jul 26th, 2001, 12:13 AM
#2
Fanatic Member
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
-
Jul 26th, 2001, 04:24 AM
#3
Fanatic Member
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
-
Jul 26th, 2001, 09:23 AM
#4
Thread Starter
Member
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.
-
Jul 26th, 2001, 09:37 AM
#5
Thread Starter
Member
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.
-
Jul 26th, 2001, 03:15 PM
#6
Fanatic Member
don't know for sure if there is an API or not...but reading it from the registry is a sure way.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|