mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 12:45:40 +08:00
Fixed I18N for network checks
This commit is contained in:
@@ -53,7 +53,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
if (!CNetworkChecks::hasConnectedInterface(false))
|
if (!CNetworkChecks::hasConnectedInterface(false))
|
||||||
{
|
{
|
||||||
message = QCoreApplication::translate("BlackMisc", "No connected network interface");
|
message = QObject::tr("No connected network interface", "BlackMisc");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,12 +63,12 @@ namespace BlackMisc
|
|||||||
socket.connectToHost(hostAddress, port);
|
socket.connectToHost(hostAddress, port);
|
||||||
if (!socket.waitForConnected(timeoutMs))
|
if (!socket.waitForConnected(timeoutMs))
|
||||||
{
|
{
|
||||||
message = QCoreApplication::translate("BlackMisc", "Connection failed : %1").arg(socket.errorString());
|
message = QObject::tr("Connection failed : %1", "BlackMisc").arg(socket.errorString());
|
||||||
connected = false;
|
connected = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
message = QCoreApplication::translate("BlackMisc", "OK, connected");
|
message = QObject::tr("OK, connected", "BlackMisc");
|
||||||
connected = true;
|
connected = true;
|
||||||
}
|
}
|
||||||
socket.close();
|
socket.close();
|
||||||
|
|||||||
Reference in New Issue
Block a user