Results 1 to 6 of 6

Thread: Locale Setting

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Canada
    Posts
    34

    Question 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.
    Regards

  2. #2
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    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

  3. #3
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Canada
    Posts
    34
    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.
    Regards

  5. #5

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Canada
    Posts
    34
    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.
    Regards

  6. #6
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    don't know for sure if there is an API or not...but reading it from the registry is a sure way.
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width