summaryrefslogtreecommitdiff
path: root/src/utils/translation/translationmanager.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-18 23:05:10 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-19 00:03:33 +0300
commitf99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f (patch)
treeb325f2fa7063581f3110184aa449d08c9fafbb02 /src/utils/translation/translationmanager.h
parentac9594ec37a52c436b87a2d431e7df126592e4a5 (diff)
downloadManaVerse-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.gz
ManaVerse-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.bz2
ManaVerse-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.xz
ManaVerse-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.zip
Add help po translation.
Combine help and client data translations.
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