From f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 Mar 2012 23:05:10 +0300 Subject: Add help po translation. Combine help and client data translations. --- src/utils/translation/translationmanager.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/utils/translation/translationmanager.h') 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 #include @@ -29,13 +31,19 @@ class PoDict; class TranslationManager { public: - static PoDict *loadLang(std::vector lang); + static PoDict *loadLang(std::vector 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 &lines); }; #endif // UTILS_TRANSLATION_MANAGER_H -- cgit v1.2.3-70-g09d2