diff options
author | Victor Ostashevsky <ostash@ostash.kiev.ua> | 2010-09-28 17:19:53 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-28 17:20:04 (GMT) |
commit | 64c2fa1d2ad0133462c9a6fbf8fa365b99e7de2d (patch) | |
tree | 5a3e82b34b979c7eab08026eec09a6fda852122f /tools/assistant | |
parent | 72c91efce8ea1cb5daf9a6f48d19b414fe4e6d7a (diff) | |
download | Qt-64c2fa1d2ad0133462c9a6fbf8fa365b99e7de2d.zip Qt-64c2fa1d2ad0133462c9a6fbf8fa365b99e7de2d.tar.gz Qt-64c2fa1d2ad0133462c9a6fbf8fa365b99e7de2d.tar.bz2 |
Don't use translations for console tools under windows
Task-number: QTBUG-13619
Merge-request: 2486
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tools/assistant')
-rw-r--r-- | tools/assistant/tools/qcollectiongenerator/main.cpp | 2 | ||||
-rw-r--r-- | tools/assistant/tools/qhelpgenerator/main.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/assistant/tools/qcollectiongenerator/main.cpp b/tools/assistant/tools/qcollectiongenerator/main.cpp index 46e301c..fc9dc67 100644 --- a/tools/assistant/tools/qcollectiongenerator/main.cpp +++ b/tools/assistant/tools/qcollectiongenerator/main.cpp @@ -354,6 +354,7 @@ int main(int argc, char *argv[]) bool showVersion = false; QCoreApplication app(argc, argv); +#ifndef Q_OS_WIN32 QTranslator translator; QTranslator qtTranslator; QTranslator qt_helpTranslator; @@ -366,6 +367,7 @@ int main(int argc, char *argv[]) app.installTranslator(&qtTranslator); app.installTranslator(&qt_helpTranslator); } +#endif // Q_OS_WIN32 for (int i=1; i<argc; ++i) { arg = QString::fromLocal8Bit(argv[i]); diff --git a/tools/assistant/tools/qhelpgenerator/main.cpp b/tools/assistant/tools/qhelpgenerator/main.cpp index 637786c..5e20b4e 100644 --- a/tools/assistant/tools/qhelpgenerator/main.cpp +++ b/tools/assistant/tools/qhelpgenerator/main.cpp @@ -68,6 +68,7 @@ int main(int argc, char *argv[]) bool checkLinks = false; QCoreApplication app(argc, argv); +#ifndef Q_OS_WIN32 QTranslator translator; QTranslator qtTranslator; QTranslator qt_helpTranslator; @@ -80,6 +81,7 @@ int main(int argc, char *argv[]) app.installTranslator(&qtTranslator); app.installTranslator(&qt_helpTranslator); } +#endif // Q_OS_WIN32 for (int i = 1; i < argc; ++i) { arg = QString::fromLocal8Bit(argv[i]); |