From 556590e73ab628d652b901e100e5b48708cf18e0 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 15 Nov 2016 10:47:02 +0100 Subject: [PATCH] Fixed: Don't use hash to extract clauses but identifier (else there could be conflict if the same text if used several times) --HG-- branch : develop --- code/ryzom/tools/translation_tools/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/ryzom/tools/translation_tools/main.cpp b/code/ryzom/tools/translation_tools/main.cpp index 0d868d621..3b7d27a05 100644 --- a/code/ryzom/tools/translation_tools/main.cpp +++ b/code/ryzom/tools/translation_tools/main.cpp @@ -3080,12 +3080,11 @@ int injectClause() vector::iterator lastClause( first->Clauses.end()); for ( ; firstClause != lastClause; ++firstClause) { - uint64 hashValue = CI18N::makeHash(firstClause->Text); vector::iterator firstRefClause(clauses.begin()); vector::iterator lastRefClause(clauses.end()); for ( ; firstRefClause != lastRefClause ; ++firstRefClause) { - if (hashValue == firstRefClause->HashValue && firstClause->Text != firstRefClause->Text) + if (firstClause->Identifier == firstRefClause->Identifier && firstClause->Text != firstRefClause->Text) { firstClause->Text = firstRefClause->Text; firstClause->HashValue = CI18N::makeHash(firstClause->Text);