From b7dcf55d4cf39b7611c10aa0946bed918a739abc Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 18 Jun 2022 12:34:44 +0200 Subject: [PATCH] [locale] Add debug while mapping language+country --- src/modules/locale/LocaleConfiguration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/locale/LocaleConfiguration.cpp b/src/modules/locale/LocaleConfiguration.cpp index b7b895290..e6de826dd 100644 --- a/src/modules/locale/LocaleConfiguration.cpp +++ b/src/modules/locale/LocaleConfiguration.cpp @@ -46,11 +46,13 @@ LocaleConfiguration::fromLanguageAndLocation( const QString& languageLocale, const QStringList& availableLocales, const QString& countryCode ) { + cDebug() << "Mapping" << languageLocale << "in" << countryCode << "to locale."; QString language = languageLocale.split( '_' ).first(); // Either an exact match, or the whole language part matches // (followed by . or _ QStringList linesForLanguage = availableLocales.filter( QRegularExpression( language + "[._]" ) ); + cDebug() << Logger::SubEntry << "Matching" << linesForLanguage; QString lang; if ( linesForLanguage.length() == 0 || languageLocale.isEmpty() )