Translations::merge_with( Translations $other )

In this article

Merges other translations into the current one.

Parameters

$otherTranslationsrequired
Another Translation object, whose translations will be merged in this one (passed by reference).

Source

public function merge_with( &$other ) {
	foreach ( $other->entries as $entry ) {
		$this->entries[ $entry->key() ] = $entry;
	}
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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