diff options
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; |