From 39374b5a9546dd69abff1c69e5d17045d7d2bc35 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 4 Jan 2024 15:48:21 +0100 Subject: [PATCH] add more info before we try to load translations and/or fail Signed-off-by: Matthieu Gallien --- src/gui/application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index 668d09aebcc28..2f33bf59db046 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -963,6 +963,7 @@ void Application::setupTranslations() lang = substLang(lang); const QString trPath = applicationTrPath(); const QString trFile = QLatin1String("client_") + lang; + qCInfo(lcApplication()) << "trying to load" << lang << "in" << trFile << "from" << trPath; if (translator->load(trFile, trPath) || lang.startsWith(QLatin1String("en"))) { // Permissive approach: Qt and keychain translations // may be missing, but Qt translations must be there in order @@ -992,6 +993,8 @@ void Application::setupTranslations() if (!qtkeychainTranslator->isEmpty()) installTranslator(qtkeychainTranslator); break; + } else { + qCInfo(lcApplication()) << "translation catalog failed to load"; } if (property("ui_lang").isNull()) { setProperty("ui_lang", "C");