diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-05 01:20:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-05 01:20:59 +0300 |
commit | 75c9723444581805ccbaafaa26109e5bee0d37c6 (patch) | |
tree | dc70c30473f5c7958c853c310e9538b6ba9ce153 /src/utils/translation | |
parent | 9630767dc8786a001185356abba081bd0acbbef5 (diff) | |
download | mv-75c9723444581805ccbaafaa26109e5bee0d37c6.tar.gz mv-75c9723444581805ccbaafaa26109e5bee0d37c6.tar.bz2 mv-75c9723444581805ccbaafaa26109e5bee0d37c6.tar.xz mv-75c9723444581805ccbaafaa26109e5bee0d37c6.zip |
Add loading translation for dict object.
For future dictionary translations.
Diffstat (limited to 'src/utils/translation')
-rw-r--r-- | src/utils/translation/podict.cpp | 1 | ||||
-rw-r--r-- | src/utils/translation/podict.h | 1 | ||||
-rw-r--r-- | src/utils/translation/translationmanager.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
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 |