summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-03-02 16:09:49 (GMT)
committerck <qt-info@nokia.com>2010-03-02 16:09:49 (GMT)
commitffec21e1e0694972592150c600f2970b6f28dbad (patch)
treea3393f2f923513ea2c4c97497df57b40df987ccf /tools
parentfbcfcea9bb5cf0ce39e5ce1fb9b0628930f034d1 (diff)
downloadQt-ffec21e1e0694972592150c600f2970b6f28dbad.zip
Qt-ffec21e1e0694972592150c600f2970b6f28dbad.tar.gz
Qt-ffec21e1e0694972592150c600f2970b6f28dbad.tar.bz2
Assistant: Don't warn for non-existing English to English translations.
They usually don't exist, so we'd just be adding noise otherwise. Reviewed-by: kh1
Diffstat (limited to 'tools')
-rw-r--r--tools/assistant/tools/assistant/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/assistant/tools/assistant/main.cpp b/tools/assistant/tools/assistant/main.cpp
index 77e5e7c..51ea9f9 100644
--- a/tools/assistant/tools/assistant/main.cpp
+++ b/tools/assistant/tools/assistant/main.cpp
@@ -292,7 +292,7 @@ void setupTranslation(const QString &fileName, const QString &dir)
QTranslator *translator = new QTranslator(QCoreApplication::instance());
if (translator->load(fileName, dir)) {
QCoreApplication::installTranslator(translator);
- } else {
+ } else if (!fileName.endsWith(QLatin1String("en_US"))) {
qWarning("Could not load translation file %s in directory %s.",
qPrintable(fileName), qPrintable(dir));
}