Translations::merge_originals_with() WordPress Method
The Translations::merge_originals_with() method is used to merge the original strings with the translated strings. This is useful when you need to update the original strings and want to keep the translated strings up-to-date.
Translations::merge_originals_with( object $other ) #
Contents
Parameters
- $other
(object)(Required)
Source
File: wp-includes/pomo/translations.php
public function merge_originals_with( &$other ) { foreach ( $other->entries as $entry ) { if ( ! isset( $this->entries[ $entry->key() ] ) ) { $this->entries[ $entry->key() ] = $entry; } else { $this->entries[ $entry->key() ]->merge_with( $entry ); } } }
Expand full source codeCollapse full source codeView on TracView on GitHub