private void addTargetSection(ITextUnit tu) { skel.append(lineBreak); skel.append("<translation"); skel.addValuePlaceholder(tu, Property.APPROVED, trgLang); tu.setTargetProperty(trgLang, new Property(Property.APPROVED, "no", false)); tu.setTargetProperty(trgLang, new Property("variants", "no")); skel.append(" variants=\"no\">"); skel.addContentPlaceholder(tu, trgLang); skel.append("</translation>"); }
tc.setContent(toAbstract(new TextFragment(tmp.toString()))); if ( !hasFuzzyFlag ) { tu.setTargetProperty(trgLang, new Property(Property.APPROVED, "yes", true));
if (approvedProp.getValue().equals("yes")) { approvedProp.setValue("no"); tu.setTargetProperty(trgLang, approvedProp); logger.warn( "Translation (Line {}) is empty. type attribute was updated to unfinished.",
if ( hasFuzzyFlag ) { if (tu == null) tu = new TextUnit(null); // Id is set after tu.setTargetProperty(trgLang, new Property(Property.APPROVED, "no", false)); skel.append(textLine.substring(0, pos)); skel.addValuePlaceholder(tu, Property.APPROVED, trgLang); tu.setTargetProperty(trgLang, new Property(Property.APPROVED, "no", false)); hasFuzzyFlag = true; skel.append(textLine.substring(pos+5));
tu.setTargetProperty(targetLocale, new Property(Property.APPROVED, "yes"));
logger.warn("Hidden text detected in target content of text unit '{}'\nTarget=\"{}\"", tu.getId(), trgFrag.toText()); tu.setTargetProperty(trgLang, new Property(PROP_HASHIDDENTEXT, String.format("%d;%d", startHidden, endHidden)));
deScore1to2Prop.setValue(String.format("%03d", edScore1to2)); fmScore1to2Prop.setValue(String.format("%03d", fmScore1to2)); tmxTu.setTargetProperty(targetLocale2Extra, deScore1to2Prop); tmxTu.setTargetProperty(targetLocale2Extra, fmScore1to2Prop); if ( filter3 != null ) { tmxTu.setTargetContent(targetLocale3Extra, trgFrag3); deScore1to3Prop.setValue(String.format("%03d", edScore1to3)); fmScore1to3Prop.setValue(String.format("%03d", fmScore1to3)); tmxTu.setTargetProperty(targetLocale3Extra, deScore1to3Prop); tmxTu.setTargetProperty(targetLocale3Extra, fmScore1to3Prop);