radioapp/radioapplication/src/main.cpp
changeset 16 f54ebcfc1b80
parent 14 63aabac4416d
child 19 afea38384506
--- a/radioapp/radioapplication/src/main.cpp	Fri Apr 16 14:58:55 2010 +0300
+++ b/radioapp/radioapplication/src/main.cpp	Mon May 03 12:31:41 2010 +0300
@@ -35,11 +35,16 @@
 
     LOG_TIMESTAMP( "Tesla started" );
 
+#ifdef BUILD_WIN32
+    QString path = ".";
+    QString localizedRadio = "fmradio_en_US.qm";
+#else
     const QString localizedRadio = "fmradio_" + QLocale::system().name();
-    QString path = QString( TRANSLATIONS_PATH_FORMAT ).arg( "C" );  
+    QString path = QString( TRANSLATIONS_PATH_FORMAT ).arg( "C" );
     if ( !QFile::exists( path + localizedRadio ) ) {
         path = QString( TRANSLATIONS_PATH_FORMAT ).arg( "Z" );
     }
+#endif // BUILD_WIN32
     
     QTranslator translator;
     translator.load( localizedRadio, path );