public static function mergeExtractedComments(Translation $from, Translation $to, $options = self::DEFAULTS)
    {
        if ($options & self::EXTRACTED_COMMENTS_THEIRS) {
            $to->deleteExtractedComments();
        }

        if (!($options & self::EXTRACTED_COMMENTS_OURS)) {
            foreach ($from->getExtractedComments() as $comment) {
                $to->addExtractedComment($comment);
            }
        }
    }
public static function mergeExtractedComments(Translation $from, Translation $to, $options = self::DEFAULTS)
    {
        if ($options & self::EXTRACTED_COMMENTS_THEIRS) {
            $to->deleteExtractedComments();
        }

        if (!($options & self::EXTRACTED_COMMENTS_OURS)) {
            foreach ($from->getExtractedComments() as $comment) {
                $to->addExtractedComment($comment);
            }
        }
    }
public static function mergeExtractedComments ( Translation $ from , Translation $ to , $ options = self :: DEFAULTS ) { if ( $ options & self :: EXTRACTED_COMMENTS_THEIRS ) { $ to -> deleteExtractedComments ( ) ; } if ( ! ( $ options & self :: EXTRACTED_COMMENTS_OURS ) ) { foreach ( $ from -> getExtractedComments ( ) as $ comment ) { $ to -> addExtractedComment ( $ comment ) ; } } }
Merge the extracted comments of two translations.

@param Translation $from
@param Translation $to
@param int         $options
Merge the extracted comments of two translations .