+ // Translation - get locale
+ QLocale ql = QLocale::system ();
+ // Translations for qt's own dialogs
+ QTranslator qtTranslator( 0 );
+ // Let's find the right path for the translation file
+#if !defined( WIN32 )
+
+ QString path = QString(QT4LOCALEDIR);
+#else
+ QString path = QString( QString(system_VLCPath()) + DIR_SEP +
+ "locale" + DIR_SEP );
+#endif
+ // files depending on locale
+ bool b_loaded = qtTranslator.load( path + "qt_" + ql.name());
+ if (!b_loaded)
+ msg_Dbg(p_intf, "Error while initializing qt-specific localization");
+ app->installTranslator(&qtTranslator);