mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Move text string to translations.json
This commit is contained in:
@@ -163,11 +163,12 @@ void CServerHandler::startLocalServerAndConnect()
|
||||
|
||||
th->update();
|
||||
|
||||
auto errorMsg = CGI->generaltexth->localizedTexts["server"]["errors"]["existingProcess"].String();
|
||||
try
|
||||
{
|
||||
CConnection testConnection(settings["server"]["server"].String(), getDefaultPort(), NAME, uuid);
|
||||
logNetwork->error("Port is busy, kill other vcmiserver processes");
|
||||
CInfoWindow::showInfoDialog("Port is busy, kill other vcmiserver processes", CInfoWindow::TCompsInfo(), PlayerColor(1));
|
||||
logNetwork->error("Port is busy, check if another instance of vcmiserver is working");
|
||||
CInfoWindow::showInfoDialog(errorMsg, {});
|
||||
return;
|
||||
}
|
||||
catch(...)
|
||||
|
@@ -23,6 +23,13 @@
|
||||
},
|
||||
"playerAttacked" : "Player has been attacked: %s"
|
||||
},
|
||||
"server" :
|
||||
{
|
||||
"errors" :
|
||||
{
|
||||
"existingProcess" : "Another vcmiserver process is running, please terminate it first"
|
||||
}
|
||||
},
|
||||
"systemOptions" :
|
||||
{
|
||||
"fullscreenButton" :
|
||||
|
Reference in New Issue
Block a user