Translation_Entry::merge_with( Translation_Entry $other )

In this article

Merges another translation entry with the current one.

Parameters

$otherTranslation_Entryrequired
Other translation entry.

Source

public function merge_with( &$other ) {
	$this->flags      = array_unique( array_merge( $this->flags, $other->flags ) );
	$this->references = array_unique( array_merge( $this->references, $other->references ) );
	if ( $this->extracted_comments !== $other->extracted_comments ) {
		$this->extracted_comments .= $other->extracted_comments;
	}
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.