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/dyetool | |
parent | d8a530e299b4dd04c020ca3e3eeda7b12f89b69b (diff) | |
download | manaverse-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.gz manaverse-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.bz2 manaverse-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.xz manaverse-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.zip |
Add chat command for translate message from player language to english.
Also add po field into languages.xml.
Diffstat (limited to 'src/dyetool')
-rw-r--r-- | src/dyetool/actions/chat.cpp | 1 | ||||
-rw-r--r-- | src/dyetool/client.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/dyetool/actions/chat.cpp b/src/dyetool/actions/chat.cpp index 150f3d7fb..940ded31c 100644 --- a/src/dyetool/actions/chat.cpp +++ b/src/dyetool/actions/chat.cpp @@ -61,5 +61,6 @@ impHandlerVoid(chatGuildTab) impHandlerVoid(hat) impHandlerVoid(chatClipboard) impHandlerVoid(guildNotice) +impHandlerVoid(translate) } // namespace Actions diff --git a/src/dyetool/client.cpp b/src/dyetool/client.cpp index f618db321..cf3fceed6 100644 --- a/src/dyetool/client.cpp +++ b/src/dyetool/client.cpp @@ -282,6 +282,7 @@ void Client::gameInit() VirtFs::mountDir(settings.localDataDir, Append_false); TranslationManager::loadCurrentLang(); + TranslationManager::loadDictionaryLang(); #ifdef ENABLE_CUSTOMNLS TranslationManager::loadGettextLang(); #endif // ENABLE_CUSTOMNLS @@ -662,6 +663,7 @@ int Client::gameExec() paths.setDefaultValues(getPathsDefaults()); initPaths(); TranslationManager::loadCurrentLang(); + TranslationManager::loadDictionaryLang(); if (desktop) desktop->reloadWallpaper(); |