diff options
Diffstat (limited to 'src/utils')
-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() |