Tweak some connection failure messages
authorWuzzy <Wuzzy2@mail.ru>
Mon, 13 Aug 2018 16:01:58 +0200
changeset 13657 2d38dc2d3414
parent 13656 edbe5d80ffbc
child 13658 73993abb85d7
Tweak some connection failure messages
QTfrontend/hwform.cpp
gameServer/Actions.hs
--- a/QTfrontend/hwform.cpp	Sun Aug 12 16:31:22 2018 +0200
+++ b/QTfrontend/hwform.cpp	Mon Aug 13 16:01:58 2018 +0200
@@ -1673,7 +1673,7 @@
     if (pnetserver)
         return; // we have server - let it care of all things
     if (hwnet) {
-        QString errorStr = QMessageBox::tr("Connection to server is lost") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Quit reason: ") + '"' + reason +'"'));
+        QString errorStr = QMessageBox::tr("The connection to the server is lost.") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Reason:") + "\n" + reason));
         MessageDialog::ShowErrorMessage(errorStr, this);
     }
 
--- a/gameServer/Actions.hs	Sun Aug 12 16:31:22 2018 +0200
+++ b/gameServer/Actions.hs	Mon Aug 13 16:01:58 2018 +0200
@@ -557,7 +557,7 @@
     mapM_ processAction [
         AddIP2Bans clHost (loc "60 seconds cooldown after kick") (addUTCTime 60 currentTime)
         , ModifyClient (\c -> c{isKickedFromServer = True})
-        , ByeClient "Kicked"
+        , ByeClient $ loc "Kicked"
         ]