views:

103

answers:

3

My Application is running in Linux. it would be localized. how can I get the OS Language? is it represented in Linux? as a numeric values?

+2  A: 

See the question at SuperUser:

http://superuser.com/questions/62031/how-to-change-the-linux-localization

If you just want to know which locales are supported, you can see which are installed, which can be done in Debian by doing a:

ls -l /usr/share/locale

I guess the locale named "C" (the default locale name, which is just english) should always be installed.

And if you want to set the locale, just use:

export -n LC_ALL=de_DE

for German, e.g.

Daniel
A: 

You can find some useful information in the GLibC Manual.

doron