Fix qt_error_string() and QSystemError::string's lack of i18n
There are four messages that we, for some reason I don't understand, have our own text for instead of using strerror(). But even though they were marked for extraction, they weren't translated. Fixes: QTBUG-95039 Pick-to: 6.2 Change-Id: I266f1bf9a4d84db39086fffd168f8c6dfe9c2cf4 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>bb10
parent
a8bcf68a5e
commit
8731192106
|
|
@ -46,6 +46,9 @@
|
|||
#ifdef Q_OS_WIN
|
||||
# include <qt_windows.h>
|
||||
#endif
|
||||
#ifndef QT_BOOTSTRAPPED
|
||||
# include <qcoreapplication.h>
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
|
@ -127,9 +130,11 @@ static QString standardLibraryErrorString(int errorCode)
|
|||
break; }
|
||||
}
|
||||
if (s) {
|
||||
// ######## this breaks moc build currently
|
||||
// ret = QCoreApplication::translate("QIODevice", s);
|
||||
#ifndef QT_BOOTSTRAPPED
|
||||
ret = QCoreApplication::translate("QIODevice", s);
|
||||
#else
|
||||
ret = QString::fromLatin1(s);
|
||||
#endif
|
||||
}
|
||||
return ret.trimmed();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue