Reputation: 3934
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
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
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