Only do translation in Qt when asked.
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 29 Dec 2007 23:25:52 +0000 (23:25 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 29 Dec 2007 23:25:52 +0000 (23:25 +0000)
modules/gui/qt4/qt4.cpp

index edf62bd..3148a9b 100644 (file)
@@ -283,6 +283,7 @@ static void Init( intf_thread_t *p_intf )
     else
     /*if( p_intf->pf_show_dialog )*/
         vlc_thread_ready( p_intf );
+#ifdef ENABLE_NLS
     // Translation - get locale
     QLocale ql = QLocale::system();
     // Translations for qt's own dialogs
@@ -299,7 +300,7 @@ static void Init( intf_thread_t *p_intf )
     if (!b_loaded)
         msg_Dbg( p_intf, "Error while initializing qt-specific localization" );
     app->installTranslator( &qtTranslator );
-
+#endif  //ENABLE_NLS
     /* Start playing if needed */
     if( !p_intf->pf_show_dialog && p_intf->b_play )
     {