From 6930400b67faaf7e19a9a373c1018e4594f64263 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 18 Apr 2018 11:34:09 -0400 Subject: [PATCH] DEBUG logging --- src/modules/welcome/WelcomePage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/welcome/WelcomePage.cpp b/src/modules/welcome/WelcomePage.cpp index 8bee436e6..e35ec1d55 100644 --- a/src/modules/welcome/WelcomePage.cpp +++ b/src/modules/welcome/WelcomePage.cpp @@ -147,6 +147,10 @@ WelcomePage::initLanguages() QLocale thisLocale = QLocale( locale ); QString lang = QLocale::languageToString( thisLocale.language() ); + cDebug() << "LOCALE" << locale << "lang" << lang << "country" << QLocale::countryToString( thisLocale.country() ); + cDebug() << " .. countries=" << thisLocale.language() << QLocale::countriesForLanguage( thisLocale.language() ); + cDebug() << " .. " << thisLocale.nativeLanguageName() << thisLocale.nativeCountryName(); + if ( QLocale::countriesForLanguage( thisLocale.language() ).count() > 2 ) lang.append( QString( " (%1)" ) .arg( QLocale::countryToString( thisLocale.country() ) ) );