summaryrefslogtreecommitdiff
path: root/src/utils/translation
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-13 16:01:04 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-13 16:01:04 +0300
commit258f968327f6e790e11e809070c5ea5dc21a299c (patch)
treeb7fe4e6d0f81624aafad447cfcc8e167b9e2190f /src/utils/translation
parentf5c91d0ab17a76b7159324837fd938dcecbf1951 (diff)
downloadmanaverse-258f968327f6e790e11e809070c5ea5dc21a299c.tar.gz
manaverse-258f968327f6e790e11e809070c5ea5dc21a299c.tar.bz2
manaverse-258f968327f6e790e11e809070c5ea5dc21a299c.tar.xz
manaverse-258f968327f6e790e11e809070c5ea5dc21a299c.zip
Fix files translation.
Line was not translated if at first position was characters "<<".
Diffstat (limited to 'src/utils/translation')
-rw-r--r--src/utils/translation/translationmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/translation/translationmanager.cpp b/src/utils/translation/translationmanager.cpp
index 0c20f1392..4c811ab60 100644
--- a/src/utils/translation/translationmanager.cpp
+++ b/src/utils/translation/translationmanager.cpp
@@ -102,8 +102,9 @@ bool TranslationManager::translateFile(const std::string &fileName,
}
std::string str = std::string(fileContents, contentsLength);
- size_t oldPos1 = 0;
+ size_t oldPos1 = std::string::npos;
size_t pos1;
+
while ((pos1 = str.find("<<")) != std::string::npos)
{
if (pos1 == oldPos1)