From 2db70f5fba37e64b0c05feab942a4f6dd61dbd82 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Wed, 9 Jan 2019 00:22:54 +0100 Subject: [PATCH] Fix a typo in the network connection error message Fixes #105 --- nymea-app/ui/connection/ConnectPage.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nymea-app/ui/connection/ConnectPage.qml b/nymea-app/ui/connection/ConnectPage.qml index 66c3f1a2..b8b5fde0 100644 --- a/nymea-app/ui/connection/ConnectPage.qml +++ b/nymea-app/ui/connection/ConnectPage.qml @@ -59,16 +59,19 @@ Page { // silently ignore. They'll be handled by the SSL logic return; case "HostNotFoundError": - errorMessage = qsTr("The %1 box could not be found on this address. Please make sure you entered the address correctly and that the box is powered on.").arg(app.systemName); + errorMessage = qsTr("%1:core could not be found on this address. Please make sure you entered the address correctly and that the box is powered on.").arg(app.systemName); break; case "NetworkError": errorMessage = qsTr("It seems you're not connected to the network."); break; case "RemoteHostClosedError": - errorMessage = qsTr("The %1 box has closed the connection. This probably means it has been turned off or restarted.").arg(app.systemName); + errorMessage = qsTr("%1:core has closed the connection. This probably means it has been turned off or restarted.").arg(app.systemName); + break; + case "SocketTimeoutError": + errorMessage = qsTr("%1:core did not respond. Please make sure your network connection works properly").arg(app.systemName); break; default: - errorMessage = qsTr("Un unknown error happened. We're very sorry for that. (Error code: %1)").arg(error); + errorMessage = qsTr("An unknown error happened. We're very sorry for that. (Error code: %1)").arg(error); } pageStack.pop(root, StackView.Immediate)