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:
Sergey Belyashov
2009-07-16 09:28:56 +02:00
committed by Oswald Buddenhagen
parent 6f6fafe1f9
commit 2c414f21a6
3 changed files with 21 additions and 3 deletions

View File

@@ -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 {