Package org.zanata.transformer

Examples of org.zanata.transformer.TargetTransformer


        hTarget.setContents(contents);
        hTarget.setVersionNum(0); // incremented when content is set
        // textFlowTargetDAO.makePersistent(hTarget);
        textFlow.getTargets().put(hLocale.getId(), hTarget);
        targetChanged |=
                new TargetTransformer(extensions).transform(incomingTarget,
                        hTarget);
        if (incomingTarget.getState().isTranslated()) {
            hTarget.setState(ContentState.Translated);
        }
        return targetChanged;
View Full Code Here


    }

    @Override
    public boolean merge(TextFlowTarget incomingTarget,
            HTextFlowTarget hTarget, Set<String> extensions) {
        TargetTransformer targetTransformer = new TargetTransformer(extensions);
        if (incomingTarget.getState().isUntranslated()) {
            return false;
        }

        if (hTarget.getState() == ContentState.New) {
View Full Code Here

TOP

Related Classes of org.zanata.transformer.TargetTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.