diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-05 19:03:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-05 19:03:59 +0300 |
commit | 3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74 (patch) | |
tree | fe7ab920632207462354714e12604e2064d059ea /src/utils/translation/podict.cpp | |
parent | d8a530e299b4dd04c020ca3e3eeda7b12f89b69b (diff) | |
download | plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.gz plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.bz2 plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.tar.xz plus-3b4ffd7199d990d1cbd0e7cbe23fa41f04d38e74.zip |
Add chat command for translate message from player language to english.
Also add po field into languages.xml.
Diffstat (limited to 'src/utils/translation/podict.cpp')
-rw-r--r-- | src/utils/translation/podict.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/translation/podict.cpp b/src/utils/translation/podict.cpp index 37b1b2fe8..56fd42467 100644 --- a/src/utils/translation/podict.cpp +++ b/src/utils/translation/podict.cpp @@ -54,3 +54,8 @@ const char *PoDict::getChar(const char *const str) return str; return mPoLines[str].c_str(); } + +bool PoDict::haveStr(const std::string &str) const +{ + return mPoLines.find(str) != mPoLines.end(); +} |