summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/translation/poparser.cpp6
-rw-r--r--src/utils/translation/poparser.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/translation/poparser.cpp b/src/utils/translation/poparser.cpp
index 76dae99a5..abe9fdf26 100644
--- a/src/utils/translation/poparser.cpp
+++ b/src/utils/translation/poparser.cpp
@@ -214,7 +214,7 @@ bool PoParser::readMsgStr()
return false;
}
-bool PoParser::checkLine()
+bool PoParser::checkLine() const
{
const size_t sz = mLine.size();
// check is line in format: "text"
@@ -233,7 +233,7 @@ bool PoParser::checkLang(std::string lang) const
return resman->exists(getFileName(lang));
}
-std::string PoParser::getFileName(std::string lang) const
+std::string PoParser::getFileName(std::string lang)
{
// get po file name from lang name
// logger->log("getFileName: translations/%s.po", lang.c_str());
@@ -245,7 +245,7 @@ PoDict *PoParser::getDict() const
return new PoDict(mLang);
}
-void PoParser::convertStr(std::string &str) const
+void PoParser::convertStr(std::string &str)
{
if (str.empty())
return;
diff --git a/src/utils/translation/poparser.h b/src/utils/translation/poparser.h
index dbf87b531..b4dc8a6bd 100644
--- a/src/utils/translation/poparser.h
+++ b/src/utils/translation/poparser.h
@@ -55,13 +55,13 @@ class PoParser final
bool readMsgStr();
- bool checkLine();
+ bool checkLine() const;
- std::string getFileName(std::string lang) const;
+ static std::string getFileName(std::string lang);
PoDict *getDict() const;
- void convertStr(std::string &str) const;
+ static void convertStr(std::string &str);
// current lang
std::string mLang;