web/wp-includes/pomo/entry.php
branchwordpress
changeset 132 4d4862461b8d
parent 109 03b0d1493584
equal deleted inserted replaced
131:a4642baaf829 132:4d4862461b8d
     1 <?php
     1 <?php
     2 /**
     2 /**
     3  * Contains Translation_Entry class
     3  * Contains Translation_Entry class
     4  *
     4  *
     5  * @version $Id: entry.php 115 2009-05-11 18:56:15Z nbachiyski $
     5  * @version $Id: entry.php 222 2009-09-07 21:14:23Z nbachiyski $
     6  * @package pomo
     6  * @package pomo
     7  * @subpackage entry
     7  * @subpackage entry
     8  */
     8  */
     9 
     9 
    10 
    10 if ( !class_exists( 'Translation_Entry' ) ):
    11 /**
    11 /**
    12  * Translation_Entry class encapsulates a translatable string
    12  * Translation_Entry class encapsulates a translatable string
    13  */
    13  */
    14 class Translation_Entry {
    14 class Translation_Entry {
    15 
    15 
    65 		if (is_null($this->singular)) return false;
    65 		if (is_null($this->singular)) return false;
    66 		// prepend context and EOT, like in MO files
    66 		// prepend context and EOT, like in MO files
    67 		return is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular;
    67 		return is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular;
    68 	}
    68 	}
    69 }
    69 }
    70 ?>
    70 endif;