forked from qt-creator/qt-creator
Fix translation of external tools.
Change-Id: I21541c579f3be75537763ad65b63f6804c329e50 Reviewed-on: http://codereview.qt.nokia.com/2951 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
committed by
Oswald Buddenhagen
parent
6958fbbe68
commit
47f6cb398a
@@ -45,6 +45,7 @@
|
||||
#include <utils/environment.h>
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QXmlStreamReader>
|
||||
#include <QtCore/QXmlStreamWriter>
|
||||
#include <QtCore/QDir>
|
||||
@@ -316,7 +317,8 @@ static void localizedText(const QStringList &locales, QXmlStreamReader *reader,
|
||||
}
|
||||
} else {
|
||||
if (*currentLocale < 0 && currentText->isEmpty()) {
|
||||
*currentText = reader->readElementText();
|
||||
*currentText = QCoreApplication::translate("Core::Internal::ExternalTool",
|
||||
reader->readElementText().toLatin1().constData());
|
||||
} else {
|
||||
reader->skipCurrentElement();
|
||||
}
|
||||
|
Reference in New Issue
Block a user