From ca05beba6dbfceb04aeacd884aa1504dc7ce2b87 Mon Sep 17 00:00:00 2001 From: Jean Aurambault Date: Thu, 13 Jul 2023 13:03:27 -0700 Subject: [PATCH] Document the value of md5 for monolingual document, eg. import this relates to running integrity checker during import localized asset but not pursuing the other update at the moment --- .../l10n/mojito/okapi/steps/AbstractMd5ComputationStep.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/com/box/l10n/mojito/okapi/steps/AbstractMd5ComputationStep.java b/common/src/main/java/com/box/l10n/mojito/okapi/steps/AbstractMd5ComputationStep.java index 0dd51b76f0..351f7ef3ea 100644 --- a/common/src/main/java/com/box/l10n/mojito/okapi/steps/AbstractMd5ComputationStep.java +++ b/common/src/main/java/com/box/l10n/mojito/okapi/steps/AbstractMd5ComputationStep.java @@ -47,6 +47,9 @@ protected Event handleTextUnit(Event event) { if (comments != null && comments.contains(COMMENT_TO_IGNORE)) { comments = null; } + // In the case of an import, for monolingual document, "source" contains the target and this + // md5 won't be the md5 that can identify the tm text unit. Only for multilingual document it + // would be the case. md5 = textUnitUtils.computeTextUnitMD5(name, source, comments); }