How to get the languages installed on a computer?

hello,
I'm trying to get the languages installed on my computer (Windows XP) using API.
How can i done this?
I want also to get the string represents the language such as "en-US" from a Language ID.
Thanks.
[244 byte] By [infrared] at [2007-11-20 0:41:04]
# 1 Re: How to get the languages installed on a computer?
Here is what I do (maybe there is something better):
int country_no; char country_str[50];
country_no = (int)GetProfileInt("intl", "iCountry", 0);
if (country_no == 1)
strcpy(country_str, "English");
else if (country_no == 33)
strcpy(country_str, "French");
else if (country_no == 34)
strcpy(country_str, "Spanish");
EDIT :
I see sLanguage which might be more suitable to you purposes than iCountry. On my computer sLanguage is a string of three letters containing "fra", which can be retrieved with GetProfileString (instead of GetProfileInt)
olivthill at 2007-11-9 13:23:45 >
# 2 Re: How to get the languages installed on a computer?
Look at ::EnumSystemLanguageGroups() ( http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_7vn7.asp) it might help you :)

Cheers
golanshahar at 2007-11-9 13:24:44 >