diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-05 19:03:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-05 19:03:59 +0300 |
commit | 3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74 (patch) | |
tree | fe7ab920632207462354714e12604e2064d059ea /src/client.cpp | |
parent | d8a530e299b4dd04c020ca3e3eeda7b12f89b69b (diff) | |
download | plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.gz plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.bz2 plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.xz plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.zip |
Add chat command for translate message from player language to english.
Also add po field into languages.xml.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 64744e49e..c8530da94 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -432,6 +432,7 @@ void Client::gameInit() VirtFs::mountDir(settings.localDataDir, Append_false); TranslationManager::loadCurrentLang(); + TranslationManager::loadDictionaryLang(); #ifdef ENABLE_CUSTOMNLS TranslationManager::loadGettextLang(); #endif // ENABLE_CUSTOMNLS @@ -1152,6 +1153,7 @@ int Client::gameExec() _("Connecting to server"), State::SWITCH_SERVER); TranslationManager::loadCurrentLang(); + TranslationManager::loadDictionaryLang(); BLOCK_END("Client::gameExec State::CONNECT_SERVER") break; @@ -1218,6 +1220,7 @@ int Client::gameExec() logger->log1("State: WORLD SELECT"); { TranslationManager::loadCurrentLang(); + TranslationManager::loadDictionaryLang(); if (!loginHandler) { BLOCK_END("Client::gameExec State::WORLD_SELECT") @@ -1346,6 +1349,7 @@ int Client::gameExec() initFeatures(); TranslationManager::loadCurrentLang(); + TranslationManager::loadDictionaryLang(); PlayerInfo::stateChange(mState); delete spellManager; |