summaryrefslogtreecommitdiff
path: root/src/utils/translation/translationmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/translation/translationmanager.h')
-rw-r--r--src/utils/translation/translationmanager.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/utils/translation/translationmanager.h b/src/utils/translation/translationmanager.h
index 39702f4f4..842c5620b 100644
--- a/src/utils/translation/translationmanager.h
+++ b/src/utils/translation/translationmanager.h
@@ -21,6 +21,8 @@
#ifndef UTILS_TRANSLATION_MANAGER_H
#define UTILS_TRANSLATION_MANAGER_H
+#include "localconsts.h"
+
#include <string>
#include <vector>
@@ -29,13 +31,19 @@ class PoDict;
class TranslationManager
{
public:
- static PoDict *loadLang(std::vector<std::string> lang);
+ static PoDict *loadLang(std::vector<std::string> lang,
+ std::string subName,
+ PoDict *dict = nullptr);
static void init();
static void close();
static void loadCurrentLang();
+
+ static bool translateFile(const std::string &fileName,
+ PoDict *dict,
+ std::vector<std::string> &lines);
};
#endif // UTILS_TRANSLATION_MANAGER_H