]> git.sesse.net Git - vlc/commitdiff
Qt: Remove the use of the Qt translations
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 1 Oct 2009 17:18:38 +0000 (19:18 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 1 Oct 2009 20:19:07 +0000 (22:19 +0200)
modules/gui/qt4/qt4.cpp

index 89388a53aa51d75d87ad9d31796be78f23928d03..5c298dfbd8682cac66846129b0a716fdb1451713 100644 (file)
@@ -422,33 +422,6 @@ static void *Thread( void *obj )
     /* Explain to the core how to show a dialog :D */
     p_intf->pf_show_dialog = ShowDialog;
 
-#ifdef ENABLE_NLS
-    // Translation - get locale
-#   if defined (WIN32) || defined (__APPLE__)
-    char* psz_tmp = config_GetPsz( p_intf, "language" );
-    QString lang = qfu( psz_tmp );
-    free( psz_tmp);
-    if (lang == "auto")
-        lang = QLocale::system().name();
-#   else
-    QString lang = QLocale::system().name();
-#   endif
-    // 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(config_GetDataDir()) + DIR_SEP +
-                            "locale" + DIR_SEP + "qt4" + DIR_SEP );
-#endif
-    // files depending on locale
-    bool b_loaded = qtTranslator.load( path + "qt_" + lang );
-    if (!b_loaded)
-        msg_Dbg( p_intf, "Error while initializing qt-specific localization" );
-    app.installTranslator( &qtTranslator );
-#endif  //ENABLE_NLS
-
     /* Last settings */
     app.setQuitOnLastWindowClosed( false );
 
@@ -461,7 +434,6 @@ static void *Thread( void *obj )
     if( s_style.compare("") != 0 )
         QApplication::setStyle( s_style );
 
-
     /* Launch */
     app.exec();