PO8b7c:f320:99b9:690f:4595:cd17:293a:c069xport_entry( Translation_Entry $entry ): string|false  Builds a string from the entry for inclusion in PO file   Parameters   $entry Translation_Entry Required    the entry to convert to po string.      Return string|false PO-style formatted string for the entry or false if the entry is empty   Source  File: wp-includes/pomo/po.php. View all references  public static function export_entry( $entry ) {
	if ( null === $entry->singular || '' === $entry->singular ) {
		return false;
	}
	$po = array();
	if ( ! empty( $entry->translator_comments ) ) {
		$po[] = PO8b7c:f320:99b9:690f:4595:cd17:293a:c069omment_block( $entry->translator_comments );
	}
	if ( ! empty( $entry->extracted_comments ) ) {
		$po[] = PO8b7c:f320:99b9:690f:4595:cd17:293a:c069omment_block( $entry->extracted_comments, '.' );
	}
	if ( ! empty( $entry->references ) ) {
		$po[] = PO8b7c:f320:99b9:690f:4595:cd17:293a:c069omment_block( implode( ' ', $entry->references ), ':' );
	}
	if ( ! empty( $entry->flags ) ) {
		$po[] = PO8b7c:f320:99b9:690f:4595:cd17:293a:c069omment_block( implode( ', ', $entry->flags ), ',' );
	}
	if ( $entry->context ) {
		$po[] = 'msgctxt ' . PO8b7c:f320:99b9:690f:4595:cd17:293a:c069poify( $entry->context );
	}
	$po[] = 'msgid ' . PO8b7c:f320:99b9:690f:4595:cd17:293a:c069poify( $entry->singular );
	if ( ! $entry->is_plural ) {
		$translation = empty( $entry->translations ) ? '' : $entry->translations[0];
		$translation = PO8b7c:f320:99b9:690f:4595:cd17:293a:c069match_begin_and_end_newlines( $translation, $entry->singular );
		$po[]        = 'msgstr ' . PO8b7c:f320:99b9:690f:4595:cd17:293a:c069poify( $translation );
	} else {
		$po[]         = 'msgid_plural ' . PO8b7c:f320:99b9:690f:4595:cd17:293a:c069poify( $entry->plural );
		$translations = empty( $entry->translations ) ? array( '', '' ) : $entry->translations;
		foreach ( $translations as $i => $translation ) {
			$translation = PO8b7c:f320:99b9:690f:4595:cd17:293a:c069match_begin_and_end_newlines( $translation, $entry->plural );
			$po[]        = "msgstr[$i] " . PO8b7c:f320:99b9:690f:4595:cd17:293a:c069poify( $translation );
		}
	}
	return implode( "\n", $po );
}
   Related  Uses    Uses Description      PO8b7c:f320:99b9:690f:4595:cd17:293a:c069match_begin_and_end_newlines() wp-includes/pomo/po.php       PO8b7c:f320:99b9:690f:4595:cd17:293a:c069omment_block() wp-includes/pomo/po.php   Prepare a text as a comment — wraps the lines and prepends # and a special character to each line     PO8b7c:f320:99b9:690f:4595:cd17:293a:c069poify() wp-includes/pomo/po.php   Formats a string in PO-style   
  

    
{'path': 'public/docs/wordpress/classes/po/export_entry.html', 'source': 'DevDocs.IO'}