From 81b9f065992f6bfbda723329722724e2714bf9c5 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 15 Apr 2019 19:32:45 +0200 Subject: [PATCH] Improve Translator debug output and remove some unneeded search paths --- libnymea/translator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnymea/translator.cpp b/libnymea/translator.cpp index af62f129..586c0a21 100644 --- a/libnymea/translator.cpp +++ b/libnymea/translator.cpp @@ -92,6 +92,7 @@ void Translator::loadTranslator(DevicePlugin *plugin, const QLocale &locale) break; } foreach (const QString &subdir, QDir(pluginPath).entryList(QDir::Dirs | QDir::NoDotAndDotDot)) { +// qCDebug(dcTranslations()) << "|- Searching for translations for" << plugin->pluginName() << "in subdir" << QDir(pluginPath + "/" + subdir + "/translations/").absolutePath() << locale << pluginId; if (translator->load(locale, pluginId, "-", QDir(pluginPath + "/" + subdir + "/translations/").absolutePath(), ".qm")) { qCDebug(dcTranslations()) << "* Loaded translation" << locale.name() << "for plugin" << plugin->pluginName() << "from" << QDir(pluginPath + "/" + subdir + "/translations/").absolutePath() + "/" + pluginId + "-[" + locale.name() + "].qm"; loaded = true; @@ -105,7 +106,7 @@ void Translator::loadTranslator(DevicePlugin *plugin, const QLocale &locale) // otherwise use the system translations if (!loaded && translator->load(locale, pluginId, "-", NymeaSettings::translationsPath(), ".qm")) { - qCDebug(dcTranslations()) << "* Load translation" << locale.name() << "for" << plugin->pluginName() << "from" << NymeaSettings::translationsPath() + "/" + pluginId + "-[" + locale.name() + "].qm"; + qCDebug(dcTranslations()) << "* Loaded translation" << locale.name() << "for" << plugin->pluginName() << "from" << NymeaSettings::translationsPath() + "/" + pluginId + "-[" + locale.name() + "].qm"; loaded = true; }