diff -r b72c6db6890b -r 5dc02b23752f src/network/kernel/qhostinfo_unix.cpp --- a/src/network/kernel/qhostinfo_unix.cpp Wed Jun 23 19:07:03 2010 +0300 +++ b/src/network/kernel/qhostinfo_unix.cpp Tue Jul 06 15:10:48 2010 +0300 @@ -194,7 +194,9 @@ results.setHostName(hostName); if (aceHostname.isEmpty()) { results.setError(QHostInfo::HostNotFound); - results.setErrorString(hostName.isEmpty() ? QObject::tr("No host name given") : QObject::tr("Invalid hostname")); + results.setErrorString(hostName.isEmpty() ? + QCoreApplication::translate("QHostInfoAgent", "No host name given") : + QCoreApplication::translate("QHostInfoAgent", "Invalid hostname")); return results; }