Permalink
Browse files

* #ifdef'd QLocale call.

  • Loading branch information...
1 parent 48da0d6 commit eea4c2f46ea79ec3b9ab791a105606f4c015a6fb @muesli muesli committed Nov 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/TomahawkApp.cpp
View
@@ -151,7 +151,11 @@ TomahawkApp::TomahawkApp( int& argc, char *argv[] )
void
TomahawkApp::installTranslator()
{
+#if QT_VERSION >= 0x040800
QString locale = QLocale::system().uiLanguages().first();
+#else
+ QString locale = QLocale::system().name();
+#endif
if ( locale == "C" )
locale = "en";

0 comments on commit eea4c2f

Please sign in to comment.