title: How to get the keyboard layout on windows with ruby?
body: <p>I want to get the keyboard layout name like "kbdus" for US-English keyboard or "kbdusx" for US-International. I have tried "GetKeyboardLayoutName" from Win32API, but I just got a number (0x20409). I know 0x0409 means "English" and "0x2" probably means one of the english keyboard variations. How to get the exact name of the keyboard layout of the user? I'm using Ruby 1.8.7 on Windows.</p>