Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/integration/master' into kerbero…
Browse files Browse the repository at this point in the history
…s-form-fallback
  • Loading branch information
Carlos A. Munoz committed Nov 12, 2013
2 parents 2e954a8 + c7650a0 commit e2812b1
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -20,6 +20,7 @@
*/
package org.zanata.service.impl;

import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
Expand Down Expand Up @@ -628,6 +629,7 @@ protected Boolean work() throws Exception {

for (TextFlowTarget incomingTarget : batch) {
String resId = incomingTarget.getResId();
// String sourceHash = incomingTarget.getSourceHash();
HTextFlow textFlow =
textFlowDAO.getById(document, resId);
if (textFlow == null) {
Expand All @@ -640,6 +642,19 @@ protected Boolean work() throws Exception {
log.warn(
"skipping TextFlowTarget with unknown resId: {}",
resId);
// } else if (sourceHash != null && !sourceHash.equals(textFlow.getContentHash())) {
// String warning = MessageFormat.format(
// "TextFlowTarget {0} may be obsolete; "
// + "associated source hash: {1}; "
// + "expected hash is {2} for source: {3}",
// resId,
// sourceHash,
// textFlow.getContentHash(),
// textFlow.getContents());
// warnings.add(warning);
// log.warn(
// "skipping TextFlowTarget {} with unknown sourceHash: {}",
// resId, sourceHash);
} else {
String validationMessage =
validateTranslations(
Expand Down

0 comments on commit e2812b1

Please sign in to comment.