From b24e6433df3c3b2926568aff9c0173459e3e8eab Mon Sep 17 00:00:00 2001 From: Ekdohibs Date: Tue, 31 Jan 2017 18:05:03 +0100 Subject: Add clientside translations. --- src/client.cpp | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 30c1ab4d5..658b10393 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -51,6 +51,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "script/scripting_client.h" #include "game.h" #include "chatmessage.h" +#include "translation.h" extern gui::IGUIEnvironment* guienv; @@ -684,8 +685,19 @@ bool Client::loadMedia(const std::string &data, const std::string &filename) return true; } - errorstream<<"Client: Don't know how to load file \"" - <loadTranslation(data); + return true; + } + + errorstream << "Client: Don't know how to load file \"" + << filename << "\"" << std::endl; return false; } -- cgit v1.2.3