MO::export_original

Advertisement

Syntax Syntax

MO::export_original( Translation_Entry $entry )

Parameters Parameters

$entry

(Required)

Return Return

(string)

Source Source

File: wp-includes/pomo/mo.php

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

Advertisement

Advertisement

Leave a Reply