MO::export_translations() WordPress Method

The MO::export_translations() method is used to generate a machine-readable translation file for a given WordPress locale. This file can be used by translation software to help translate WordPress into a new language.

MO::export_translations( Translation_Entry $entry ) #


Parameters

$entry

(Translation_Entry)(Required)


Top ↑

Return

(string)


Top ↑

Source

File: wp-includes/pomo/mo.php

		public function export_translations( $entry ) {
			// TODO: Warnings for control characters.
			return $entry->is_plural ? implode( "\0", $entry->translations ) : $entry->translations[0];
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.