MO::export_original()publicWP 1.0

Method of the class: MO{}

No Hooks.

Return

String.

Usage

$MO = new MO();
$MO->export_original( $entry );
$entry(Translation_Entry) (required)
-

MO::export_original() code WP 6.1.1

public function export_original( $entry ) {
	// TODO: Warnings for control characters.
	$exported = $entry->singular;
	if ( $entry->is_plural ) {
		$exported .= "\0" . $entry->plural;
	}
	if ( $entry->context ) {
		$exported = $entry->context . "\4" . $exported;
	}
	return $exported;
}