src/network/kernel/qhostinfo_unix.cpp
changeset 30 5dc02b23752f
parent 25 e24348a560a6
child 33 3e2da88830cd
--- 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;
     }