Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. HowTo : Determine the language of Windows ???

HowTo : Determine the language of Windows ???

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Luc Bergeron
    wrote on last edited by
    #1

    Hello fellow programmers :) I have a simple question : how can I determine the language of windows at run-time ?? Thanx in advance for any help :) Have nice day !

    U S 2 Replies Last reply
    0
    • L Luc Bergeron

      Hello fellow programmers :) I have a simple question : how can I determine the language of windows at run-time ?? Thanx in advance for any help :) Have nice day !

      U Offline
      U Offline
      Uwe Keim
      wrote on last edited by
      #2

      I used the function ::GetLocaleInfo() from the Platform SDK in the past for my projects.

      1 Reply Last reply
      0
      • L Luc Bergeron

        Hello fellow programmers :) I have a simple question : how can I determine the language of windows at run-time ?? Thanx in advance for any help :) Have nice day !

        S Offline
        S Offline
        Stephen Kellett
        wrote on last edited by
        #3

        GetUserDefaultLangID() and GetSystemDefaultLangID() GetUserDefaultLangID() gets you the language you've chosen from the keyboard (Alt+Shift to toggle between say Korean and French or whatever you have setup). GetSystemDefaultLangID() gets you the fact that the box is set up for Swahili or whatever. The returned value is encoded in two parts, the primary language and any appropriate sublanguage. You'll need to lookup the language codes to determine the values (For example English is 9 and is represented by LANG_ENGLISH). Cheers

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups