wordpress / latest / classes / mo / export_original.html

MO::export_original( Translation_Entry $entry ): string

Parameters

$entry Translation_Entry Required

Return

string

Source

File: wp-includes/pomo/mo.php. View all references

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;
}

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/mo/export_original