I need to know system locale (en, uk, ru etc.) to load appropriate translation. In Qt3 there was QTextCodec::locale() method for this but Qt4 assistant says:
The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
Also there is QLocale class that has country(), language() and name() methods in Qt4. But there is no locale().
On my Linux machine countryToString() gives me Default and language() - C, but locale is koi8-u. So how can I get system locale?