summaryrefslogtreecommitdiff
path: root/src/net/ea/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 12:33:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 12:51:43 +0300
commit04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (patch)
tree05df787f04d3d59a6d3c0711a895d77018d84b6b /src/net/ea/network.cpp
parenta3855d22fce6a33ace394f50f33571e489bab299 (diff)
downloadmanaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.gz
manaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.bz2
manaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.xz
manaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.zip
add comments for translators.
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r--src/net/ea/network.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index 9f1bdabe0..2b9c048f7 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -96,6 +96,7 @@ bool Network::connect(ServerInfo server)
if (server.hostname.empty())
{
+ // TRANSLATORS: error message
setError(_("Empty address given to Network::connect()!"));
return false;
}
@@ -190,6 +191,7 @@ bool Network::realConnect()
mServer.port) == -1)
{
const std::string errorMessage = std::string(
+ // TRANSLATORS: error message
_("Unable to resolve host \"")).append(
mServer.hostname).append("\"");
setError(errorMessage);
@@ -265,6 +267,7 @@ void Network::receive()
}
else if (ret < 0)
{
+ // TRANSLATORS: error message
setError(_("Connection to server terminated. ") +
std::string(TcpNet::getError()));
}