src/network/kernel/qhostinfo_unix.cpp
changeset 30 5dc02b23752f
parent 25 e24348a560a6
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   192     // IDN support
   192     // IDN support
   193     QByteArray aceHostname = QUrl::toAce(hostName);
   193     QByteArray aceHostname = QUrl::toAce(hostName);
   194     results.setHostName(hostName);
   194     results.setHostName(hostName);
   195     if (aceHostname.isEmpty()) {
   195     if (aceHostname.isEmpty()) {
   196         results.setError(QHostInfo::HostNotFound);
   196         results.setError(QHostInfo::HostNotFound);
   197         results.setErrorString(hostName.isEmpty() ? QObject::tr("No host name given") : QObject::tr("Invalid hostname"));
   197         results.setErrorString(hostName.isEmpty() ?
       
   198                                QCoreApplication::translate("QHostInfoAgent", "No host name given") :
       
   199                                QCoreApplication::translate("QHostInfoAgent", "Invalid hostname"));
   198         return results;
   200         return results;
   199     }
   201     }
   200 
   202 
   201 #if !defined (QT_NO_GETADDRINFO)
   203 #if !defined (QT_NO_GETADDRINFO)
   202     // Call getaddrinfo, and place all IPv4 addresses at the start and
   204     // Call getaddrinfo, and place all IPv4 addresses at the start and