summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/translation/translationmanager.cpp6
-rw-r--r--src/utils/translation/translationmanager.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp
index d02ff2c02..5877ae3a2 100644
--- a/src/utils/translation/translationmanager.cpp
+++ b/src/utils/translation/translationmanager.cpp
@@ -43,7 +43,7 @@ void TranslationManager::init()
void TranslationManager::loadCurrentLang()
{
delete translator;
- translator = loadLang(getLang(), "");
+ translator = loadLang(getLang(), "", nullptr);
translator = loadLang(getLang(), "help/", translator);
}
@@ -51,7 +51,7 @@ void TranslationManager::loadDictionaryLang()
{
delete dictionary;
delete reverseDictionary;
- dictionary = loadLang(getServerLang(), "dict/");
+ dictionary = loadLang(getServerLang(), "dict/", nullptr);
reverseDictionary = reverseLang(dictionary);
}
@@ -59,7 +59,7 @@ void TranslationManager::loadDictionaryLang()
void TranslationManager::loadGettextLang()
{
delete mainTranslator;
- mainTranslator = loadLang(getLang(), "manaplus/");
+ mainTranslator = loadLang(getLang(), "manaplus/", nullptr);
}
#endif // ENABLE_CUSTOMNLS
diff --git a/src/utils/translation/translationmanager.h b/src/utils/translation/translationmanager.h
index 088d97449..f2f7efd68 100644
--- a/src/utils/translation/translationmanager.h
+++ b/src/utils/translation/translationmanager.h
@@ -35,7 +35,7 @@ class TranslationManager final
static PoDict *loadLang(const LangVect &lang,
const std::string &subName,
- PoDict *const dict = nullptr);
+ PoDict *const dict);
static void init();