From 75b5303b49f3fb2eb9f2de408875ca8126b5ead1 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Thu, 29 Jun 2017 06:29:29 -0400 Subject: [PATCH] i18n: stop trying to install Qt translations --- src/libcalamares/utils/CalamaresUtils.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/libcalamares/utils/CalamaresUtils.cpp b/src/libcalamares/utils/CalamaresUtils.cpp index 9df222217..db748ec94 100644 --- a/src/libcalamares/utils/CalamaresUtils.cpp +++ b/src/libcalamares/utils/CalamaresUtils.cpp @@ -47,7 +47,6 @@ static bool s_isAppDataDirOverridden = false; static QTranslator* s_brandingTranslator = nullptr; static QTranslator* s_translator = nullptr; -static QTranslator* s_qtTranslator = nullptr; static QString s_translatorLocaleName; @@ -207,25 +206,6 @@ installTranslator( const QLocale& locale, QCoreApplication::installTranslator( translator ); s_translator = translator; - // Qt translations - translator = new QTranslator( parent ); - if ( translator->load( QString( ":/lang/qt_" ) + localeName ) ) - { - qDebug() << "Translation: Qt: Using system locale:" << localeName; - } - else - { - qDebug() << "Translation: Qt: Using default locale, system locale one not found:" << localeName; - } - - if ( s_qtTranslator ) - { - QCoreApplication::removeTranslator( s_qtTranslator ); - delete s_qtTranslator; - } - QCoreApplication::installTranslator( translator ); - s_qtTranslator = translator; - s_translatorLocaleName = localeName; }