summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-17 20:16:41 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-17 20:16:41 +0300
commit4e0a06db5d7aff0716757136a64e162a3fc9e768 (patch)
treee04aa75721b0f0943e491936fbf9e22a4d39a216 /src/utils
parent43fede61ac6935298f42d31c508cf7a499f1dbb5 (diff)
downloadmanaverse-4e0a06db5d7aff0716757136a64e162a3fc9e768.tar.gz
manaverse-4e0a06db5d7aff0716757136a64e162a3fc9e768.tar.bz2
manaverse-4e0a06db5d7aff0716757136a64e162a3fc9e768.tar.xz
manaverse-4e0a06db5d7aff0716757136a64e162a3fc9e768.zip
Improve translations loading in translationmanager.cpp
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/translationmanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp
index 5877ae3a2..afb82f964 100644
--- a/src/utils/translation/translationmanager.cpp
+++ b/src/utils/translation/translationmanager.cpp
@@ -43,8 +43,9 @@ void TranslationManager::init()
void TranslationManager::loadCurrentLang()
{
delete translator;
- translator = loadLang(getLang(), "", nullptr);
- translator = loadLang(getLang(), "help/", translator);
+ const StringVect lang = getLang();
+ translator = loadLang(lang, "", nullptr);
+ translator = loadLang(lang, "help/", translator);
}
void TranslationManager::loadDictionaryLang()