diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-18 23:05:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-19 00:03:33 +0300 |
commit | f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f (patch) | |
tree | b325f2fa7063581f3110184aa449d08c9fafbb02 /src/utils/translation/translationmanager.h | |
parent | ac9594ec37a52c436b87a2d431e7df126592e4a5 (diff) | |
download | manaplus-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.gz manaplus-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.bz2 manaplus-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.xz manaplus-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.h | 10 |
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 |