forked from qt-creator/qt-creator
Added possibility to translate file types in open/save dialogs.
Merge-request: 900 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
committed by
Oswald Buddenhagen
parent
6f6fafe1f9
commit
2c414f21a6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user