Merges other translations into the current one.
Parameters
$other
Translationsrequired- 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
Version | Description |
---|---|
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.