summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-05 01:20:59 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-05 01:20:59 +0300
commit75c9723444581805ccbaafaa26109e5bee0d37c6 (patch)
treedc70c30473f5c7958c853c310e9538b6ba9ce153 /src
parent9630767dc8786a001185356abba081bd0acbbef5 (diff)
downloadplus-75c9723444581805ccbaafaa26109e5bee0d37c6.tar.gz
plus-75c9723444581805ccbaafaa26109e5bee0d37c6.tar.bz2
plus-75c9723444581805ccbaafaa26109e5bee0d37c6.tar.xz
plus-75c9723444581805ccbaafaa26109e5bee0d37c6.zip
Add loading translation for dict object.
For future dictionary translations.
Diffstat (limited to 'src')
-rw-r--r--src/utils/translation/podict.cpp1
-rw-r--r--src/utils/translation/podict.h1
-rw-r--r--src/utils/translation/translationmanager.cpp1
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