diff options
author | Sergey Belyashov <Sergey.Belyashov@gmail.com> | 2009-07-16 09:28:56 +0200 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-07-16 10:06:52 +0200 |
commit | 2c414f21a6acefc0a0aa99e4641b05a034fd1dcb (patch) | |
tree | 783254257342da54cb00a15a29f6cebd5054523f /src | |
parent | 6f6fafe1f9c180c3813468cc13ce149b3b66ac9a (diff) | |
download | qt-creator-2c414f21a6acefc0a0aa99e4641b05a034fd1dcb.tar.gz |
Added possibility to translate file types in open/save dialogs.
Merge-request: 900
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/coreplugin/mimedatabase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/mimedatabase.cpp b/src/plugins/coreplugin/mimedatabase.cpp index e18edea733..9365226351 100644 --- a/src/plugins/coreplugin/mimedatabase.cpp +++ b/src/plugins/coreplugin/mimedatabase.cpp @@ -717,7 +717,7 @@ bool BaseMimeTypeParser::parse(QIODevice *dev, const QString &fileName, QString case ParseComment: { // comments have locale attributes. We want the default, English one QString locale = reader.attributes().value(QLatin1String(localeAttributeC)).toString(); - const QString comment = reader.readElementText(); + const QString comment = QCoreApplication::translate("MimeType", reader.readElementText().toAscii()); if (locale.isEmpty()) { data.comment = comment; } else { |