PDA

View Full Version : Locales and C



Triggerhapp
April 1st, 2008, 06:30 PM
Is there a quick/simple way to get the local language of the machine that a program is running on, regardless of OS/flavour? I can imagine Ubuntu would be easy to do it on alone, but I would like to get a function in C that could find the language the user is accustomed to and use it instead.

Thanks in advance : Trigg

fyplinux
April 1st, 2008, 09:09 PM
try here:
http://www.gnu.org/software/libtool/manual/libc/Locale-Information.html#Locale-Information

I am not sure whether it will work for every system.