summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2010-12-22 13:30:59 (GMT)
committerQt Commercial Integration <QtCommercial@digia.com>2012-01-31 10:25:05 (GMT)
commit385044b086bea85afba0bd489cad03faff47023c (patch)
tree2439a03e8af097f941e8d855f60b9007c108a94c
parentc312efd58645d01f19c176e0c8e0c1b5cba40699 (diff)
downloadQt-385044b086bea85afba0bd489cad03faff47023c.zip
Qt-385044b086bea85afba0bd489cad03faff47023c.tar.gz
Qt-385044b086bea85afba0bd489cad03faff47023c.tar.bz2
Assistant: Get rid of bogus warning.
Task-number: QTBUG-16096
-rw-r--r--tools/assistant/tools/assistant/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/assistant/tools/assistant/main.cpp b/tools/assistant/tools/assistant/main.cpp
index 831c754..117b869 100644
--- a/tools/assistant/tools/assistant/main.cpp
+++ b/tools/assistant/tools/assistant/main.cpp
@@ -292,7 +292,8 @@ void setupTranslation(const QString &fileName, const QString &dir)
QTranslator *translator = new QTranslator(QCoreApplication::instance());
if (translator->load(fileName, dir)) {
QCoreApplication::installTranslator(translator);
- } else if (!fileName.endsWith(QLatin1String("en_US"))) {
+ } else if (!fileName.endsWith(QLatin1String("en_US"))
+ && !fileName.endsWith(QLatin1String("_C"))) {
qWarning("Could not load translation file %s in directory %s.",
qPrintable(fileName), qPrintable(dir));
}