mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Fixed I18N for network checks
This commit is contained in:
@@ -53,7 +53,7 @@ namespace BlackMisc
|
||||
{
|
||||
if (!CNetworkChecks::hasConnectedInterface(false))
|
||||
{
|
||||
message = QCoreApplication::translate("BlackMisc", "No connected network interface");
|
||||
message = QObject::tr("No connected network interface", "BlackMisc");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -63,12 +63,12 @@ namespace BlackMisc
|
||||
socket.connectToHost(hostAddress, port);
|
||||
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;
|
||||
}
|
||||
else
|
||||
{
|
||||
message = QCoreApplication::translate("BlackMisc", "OK, connected");
|
||||
message = QObject::tr("OK, connected", "BlackMisc");
|
||||
connected = true;
|
||||
}
|
||||
socket.close();
|
||||
|
||||
Reference in New Issue
Block a user