MO::export_original
Method of the class: MO{}
No Hooks.
Returns
String.
Usage
$MO = new MO(); $MO->export_original( $entry );
- $entry(Translation_Entry) (required)
- .
MO::export_original() MO::export original code WP 7.0
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;
}