PO::export_entries(): string

In this article

Exports all entries to PO format


string sequence of msgid/msgstr PO strings, doesn’t contain a newline at the end


public function export_entries() {
	// TODO: Sorting.
	return implode( "\n\n", array_map( array( 'PO', 'export_entry' ), $this->entries ) );

User Contributed Notes

You must log in before being able to contribute a note or feedback.