sara
sara

Reputation: 3934

How does the OS language represented in Linux

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?

Upvotes: 2

Views: 270

Answers (3)

buti
buti

Reputation: 556

Since most of your other questions relate to Qt, you might want to read the documentation of the static function QLocale::system()

Upvotes: 0

Daniel
Daniel

Reputation: 28094

See the question at SuperUser:

https://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.

Upvotes: 2

doron
doron

Reputation: 28932

You can find some useful information in the GLibC Manual.

Upvotes: 0

Related Questions