Make WordPress Core


Ignore:
Timestamp:
08/11/2011 04:29:35 AM (15 years ago)
Author:
nbachiyski
Message:

Sync pomo library with the current GlotPress version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pomo/entry.php

    r13228 r18528  
    33 * Contains Translation_Entry class
    44 *
    5  * @version $Id: entry.php 406 2010-02-07 11:10:24Z nbachiyski $
     5 * @version $Id: entry.php 621 2011-06-13 12:21:50Z nbachiyski $
    66 * @package pomo
    77 * @subpackage entry
     
    6666        return is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular;
    6767    }
     68   
     69    function merge_with(&$other) {
     70        $this->flags = array_unique( array_merge( $this->flags, $other->flags ) );
     71        $this->references = array_unique( array_merge( $this->references, $other->references ) );
     72        if ( $this->extracted_comments != $other->extracted_comments ) {
     73            $this->extracted_comments .= $other->extracted_comments;
     74        }
     75       
     76    }
    6877}
    6978endif;
Note: See TracChangeset for help on using the changeset viewer.