Translation_Entry::merge_with() WordPress Method
The Translation_Entry::merge_with() Wordpress method is used to merge two translation entries into one. This is useful when you need to combine two translations into a single string.
Translation_Entry::merge_with( object $other ) #
Contents
Parameters
- $other
(object)(Required)
Source
File: wp-includes/pomo/entry.php
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; } }
Expand full source codeCollapse full source codeView on TracView on GitHub