diff options
-rw-r--r-- | src/linguist/lupdate/merge.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/linguist/lupdate/merge.cpp b/src/linguist/lupdate/merge.cpp index 3ab768b1d..f413610f9 100644 --- a/src/linguist/lupdate/merge.cpp +++ b/src/linguist/lupdate/merge.cpp @@ -460,9 +460,13 @@ Translator merge( if (options & HeuristicSimilarText) { int mi = tor.find(mv.context(), mv.comment(), mv.allReferences()); if (mi >= 0) { - if (getSimilarityScore(tor.constMessage(mi).sourceText(), mv.sourceText()) - >= textSimilarityThreshold) - continue; + // The similar message found in tor (ts file) must NOT correspond exactly + // to an other message is virginTor + if (virginTor.find(tor.constMessage(mi)) < 0) { + if (getSimilarityScore(tor.constMessage(mi).sourceText(), mv.sourceText()) + >= textSimilarityThreshold) + continue; + } } } } |