From 33580166f4b64496714a7e6ba74e963c0a13e429 Mon Sep 17 00:00:00 2001 From: kervala Date: Fri, 4 Nov 2016 20:23:01 +0100 Subject: [PATCH] Changed: Minor changes --- code/ryzom/tools/translation_tools/main.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/code/ryzom/tools/translation_tools/main.cpp b/code/ryzom/tools/translation_tools/main.cpp index 906fe6bd6..aacfe41f1 100644 --- a/code/ryzom/tools/translation_tools/main.cpp +++ b/code/ryzom/tools/translation_tools/main.cpp @@ -2329,8 +2329,7 @@ bool sortTransPhrase() } } - - nlinfo("Updating hashcode of phrase file for %s.\n", Languages[l].c_str()); + nlinfo("Updating hashcode of phrase file for %s.", Languages[l].c_str()); // build the diff file for each language. ucstring str = preparePhraseFile(phrases2, false); std::string pharseName(transDir+refFile); @@ -2414,7 +2413,6 @@ int updatePhraseWork() uint lastFile = (uint)outputResult.size(); for (; firstFile != lastFile ; ++firstFile) { - ucstring doc = outputResult[firstFile].first; std::vector phrases; readPhraseFileFromString(outputResult[firstFile].first, outputResult[firstFile].second, phrases, true); @@ -2446,7 +2444,7 @@ int updatePhraseWork() firstClause->HashValue = clauseHashValue; } updatedPhrases.push_back(transPhrase); - updatedPhrases.back().Comments= ucstring(""); + updatedPhrases.back().Comments.clear(); } } } @@ -2984,6 +2982,7 @@ void preprocessTextFile(const std::string &filename, subFilename.clear(); } } + preprocessTextFile(subFilename, outputResult); } else @@ -2994,8 +2993,6 @@ void preprocessTextFile(const std::string &filename, } - - outputResult.push_back( std::pair ( current, fullName ) ); }