From 75c9723444581805ccbaafaa26109e5bee0d37c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Apr 2017 01:20:59 +0300 Subject: Add loading translation for dict object. For future dictionary translations. --- src/utils/translation/podict.cpp | 1 + src/utils/translation/podict.h | 1 + src/utils/translation/translationmanager.cpp | 1 + 3 files changed, 3 insertions(+) (limited to 'src/utils/translation') diff --git a/src/utils/translation/podict.cpp b/src/utils/translation/podict.cpp index 23d81c4bb..1903227f0 100644 --- a/src/utils/translation/podict.cpp +++ b/src/utils/translation/podict.cpp @@ -25,6 +25,7 @@ std::string empty; PoDict *translator = nullptr; +PoDict *dictionary = nullptr; #ifdef ENABLE_CUSTOMNLS PoDict *mainTranslator = nullptr; #endif // ENABLE_CUSTOMNLS diff --git a/src/utils/translation/podict.h b/src/utils/translation/podict.h index 0ce02e939..7aefe842c 100644 --- a/src/utils/translation/podict.h +++ b/src/utils/translation/podict.h @@ -61,6 +61,7 @@ class PoDict final }; extern PoDict *translator; +extern PoDict *dictionary; #ifdef ENABLE_CUSTOMNLS extern PoDict *mainTranslator; #endif // ENABLE_CUSTOMNLS diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp index 6acde15d6..3ab5dbb23 100644 --- a/src/utils/translation/translationmanager.cpp +++ b/src/utils/translation/translationmanager.cpp @@ -43,6 +43,7 @@ void TranslationManager::loadCurrentLang() delete translator; translator = loadLang(getLang(), ""); translator = loadLang(getLang(), "help/", translator); + dictionary = loadLang(getLang(), "dict/"); } #ifdef ENABLE_CUSTOMNLS -- cgit v1.2.3-70-g09d2