S
stylechief
A program needs to determine whether to use the metric system or
American units before the GUI is displayed with units of measure. I am
thinking that checking the language used on a system might be the way
to do this. I know that on UNIX/Linux/AIX systems there is a LANG
environment variable that would make this easy, e.g. LANG=en_US. But
Windows systems lack this variable.
How does one determine the language on a Windows box, and is there
perhaps a better method to accomplish determining what country the
machine is in?
Thanks for your time.
Liam
American units before the GUI is displayed with units of measure. I am
thinking that checking the language used on a system might be the way
to do this. I know that on UNIX/Linux/AIX systems there is a LANG
environment variable that would make this easy, e.g. LANG=en_US. But
Windows systems lack this variable.
How does one determine the language on a Windows box, and is there
perhaps a better method to accomplish determining what country the
machine is in?
Thanks for your time.
Liam