summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-10-17 18:24:39 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-10-17 18:24:39 +0200
commit00bd784b608f2f282ec4bc247d1db96f30120f35 (patch)
tree015524dbc2c16ce08a46732922dd14d87178159f /src
parent17bc71fc3e19b28fd39104a480d70e25bb3f4ac2 (diff)
downloadmana-00bd784b608f2f282ec4bc247d1db96f30120f35.tar.gz
mana-00bd784b608f2f282ec4bc247d1db96f30120f35.tar.bz2
mana-00bd784b608f2f282ec4bc247d1db96f30120f35.tar.xz
mana-00bd784b608f2f282ec4bc247d1db96f30120f35.zip
Made some network error messages translateable
Diffstat (limited to 'src')
-rw-r--r--src/net/ea/network.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index 7ce85aa4..da1ef646 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -26,6 +26,7 @@
#include "net/messagehandler.h"
#include "net/messagein.h"
+#include "utils/gettext.h"
#include "utils/stringutils.h"
#include "log.h"
@@ -139,7 +140,7 @@ bool Network::connect(ServerInfo server)
if (server.hostname.empty())
{
- setError("Empty address given to Network::connect()!");
+ setError(_("Empty address given to Network::connect()!"));
return false;
}
@@ -332,7 +333,7 @@ bool Network::realConnect()
if (SDLNet_ResolveHost(&ipAddress, mServer.hostname.c_str(),
mServer.port) == -1)
{
- std::string errorMessage = "Unable to resolve host \"" +
+ std::string errorMessage = _("Unable to resolve host \"") +
mServer.hostname + "\"";
setError(errorMessage);
logger->log("SDLNet_ResolveHost: %s", errorMessage.c_str());
@@ -397,11 +398,11 @@ void Network::receive()
{
// We got disconnected
mState = IDLE;
- logger->log("Disconnected.");
+ logger->log(_("Disconnected."));
}
else if (ret < 0)
{
- setError("Connection to server terminated: " +
+ setError(_("Connection to server terminated. ") +
std::string(SDLNet_GetError()));
}
else {