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/poparser.h | |
parent | ac9594ec37a52c436b87a2d431e7df126592e4a5 (diff) | |
download | plus-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.gz plus-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.bz2 plus-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.tar.xz plus-f99ee017f2ac6b03a6bc6122cb78923a9b4f6a5f.zip |
Add help po translation.
Combine help and client data translations.
Diffstat (limited to 'src/utils/translation/poparser.h')
-rw-r--r-- | src/utils/translation/poparser.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/utils/translation/poparser.h b/src/utils/translation/poparser.h index 799cd2fe7..35a9cd772 100644 --- a/src/utils/translation/poparser.h +++ b/src/utils/translation/poparser.h @@ -23,6 +23,8 @@ #include "utils/translation/podict.h" +#include "localconsts.h" + #include <sstream> #include <string> @@ -31,7 +33,9 @@ class PoParser public: PoParser(); - PoDict *load(std::string fileName); + PoDict *load(std::string lang, + std::string fileName = "", + PoDict *dict = nullptr); bool checkLang(std::string lang) const; @@ -41,7 +45,7 @@ class PoParser void setLang(std::string lang) { mLang = lang; } - void openFile(); + void openFile(std::string name); bool readLine(); @@ -55,6 +59,8 @@ class PoParser PoDict *getDict(); + void convertStr(std::string &str); + // current lang std::string mLang; |