André
2/12/2007 6:36:00 PM
> Is it possible to find the Windows natural language (ex. English,
> French, Russian, etc...) from Ruby?
It's ok, I found already. Here's the code:
require 'Win32API'
language = Win32API.new("kernel32.dll", "GetLocaleInfoA", ['L', 'L',
'P', 'L'], 'L')
x = " " * 255
language.Call(1024, 4097, x, 255)
puts x.strip
Regards!
André