summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@nokia.com>2010-12-22 13:30:59 (GMT)
committerChristian Kandeler <christian.kandeler@nokia.com>2010-12-22 13:30:59 (GMT)
commit6ecb2f699c203fd937495cba844f7888a1d3305f (patch)
treee64d4e26efe2e36f90260fd52ff9d13a6f18745e /tools
parentbdc39d20b4958f7adc95dc5990d601e946213fda (diff)
downloadQt-6ecb2f699c203fd937495cba844f7888a1d3305f.zip
Qt-6ecb2f699c203fd937495cba844f7888a1d3305f.tar.gz
Qt-6ecb2f699c203fd937495cba844f7888a1d3305f.tar.bz2
Assistant: Get rid of bogus warning.
Task-number: QTBUG-16096
Diffstat (limited to 'tools')
-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 e3eef34..5883f7b 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));
}