Skip to content

Commit

Permalink
add more info before we try to load translations and/or fail
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Jan 4, 2024
1 parent 5820c9b commit 39374b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 39374b5

Please sign in to comment.