Translations::merge_originals_with()
最后更新于:2021-11-26 04:43:19
Translations::merge_originals_with( object$other)参数
- $other
-
(object) (Required)
源文件
文件: gc-includes/pomo/translations.php
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 );
}
}
}