Don't show localization warning unless verbose

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-10-20 06:26:28 -04:00
parent 022b3e450b
commit bebee64ca9

View file

@ -52,7 +52,7 @@ void init_qt_late()
if (qtTranslator->load(loc, "qt", "_", translationLocation)) { if (qtTranslator->load(loc, "qt", "_", translationLocation)) {
application->installTranslator(qtTranslator); application->installTranslator(qtTranslator);
} else { } else {
if (uiLang != "en_US" && uiLang != "en-US") if (verbose && uiLang != "en_US" && uiLang != "en-US")
qDebug() << "can't find Qt localization for locale" << uiLang << "searching in" << translationLocation; qDebug() << "can't find Qt localization for locale" << uiLang << "searching in" << translationLocation;
} }
ssrfTranslator = new QTranslator; ssrfTranslator = new QTranslator;