mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* #ifdef'd QLocale call.
This commit is contained in:
@@ -151,7 +151,11 @@ TomahawkApp::TomahawkApp( int& argc, char *argv[] )
|
|||||||
void
|
void
|
||||||
TomahawkApp::installTranslator()
|
TomahawkApp::installTranslator()
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION >= 0x040800
|
||||||
QString locale = QLocale::system().uiLanguages().first();
|
QString locale = QLocale::system().uiLanguages().first();
|
||||||
|
#else
|
||||||
|
QString locale = QLocale::system().name();
|
||||||
|
#endif
|
||||||
if ( locale == "C" )
|
if ( locale == "C" )
|
||||||
locale = "en";
|
locale = "en";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user