summaryrefslogtreecommitdiff
path: root/src/utils/translation
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/translation')
-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