diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-17 20:16:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-17 20:16:41 +0300 |
commit | 4e0a06db5d7aff0716757136a64e162a3fc9e768 (patch) | |
tree | e04aa75721b0f0943e491936fbf9e22a4d39a216 /src | |
parent | 43fede61ac6935298f42d31c508cf7a499f1dbb5 (diff) | |
download | mv-4e0a06db5d7aff0716757136a64e162a3fc9e768.tar.gz mv-4e0a06db5d7aff0716757136a64e162a3fc9e768.tar.bz2 mv-4e0a06db5d7aff0716757136a64e162a3fc9e768.tar.xz mv-4e0a06db5d7aff0716757136a64e162a3fc9e768.zip |
Improve translations loading in translationmanager.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/translation/translationmanager.cpp | 5 |
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() |