summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-03 15:53:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-05 22:53:59 +0300
commitbf435a79408d89072f5872ab98449949a8a077b0 (patch)
treee50bddcd239de2756780691cabf8779dd5efcc12 /src/client.cpp
parent42990fcd0a9f662eea267097e88b68b9c30da457 (diff)
downloadmanaverse-bf435a79408d89072f5872ab98449949a8a077b0.tar.gz
manaverse-bf435a79408d89072f5872ab98449949a8a077b0.tar.bz2
manaverse-bf435a79408d89072f5872ab98449949a8a077b0.tar.xz
manaverse-bf435a79408d89072f5872ab98449949a8a077b0.zip
Add own translation system.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index c21194834..cb65c3b60 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -101,6 +101,8 @@
#include "utils/paths.h"
#include "utils/stringutils.h"
+#include "utils/translation/translationmanager.h"
+
#include "test/testlauncher.h"
#include "test/testmain.h"
@@ -458,6 +460,8 @@ void Client::gameInit()
//resman->selectSkin();
+ TranslationManager::loadCurrentLang();
+
std::string iconFile = branding.getValue("appIcon", "icons/manaplus");
#ifdef WIN32
iconFile += ".ico";
@@ -1050,6 +1054,7 @@ int Client::gameExec()
logger->log1("State: CONNECT SERVER");
mCurrentDialog = new ConnectionDialog(
_("Connecting to server"), STATE_SWITCH_SERVER);
+ TranslationManager::loadCurrentLang();
break;
case STATE_LOGIN: