Translations::translate_entry() WordPress Method

The Translations::translate_entry() method is used to translate a WordPress entry from one language to another. This is useful for posts or pages that have been created in one language but need to be translated into another language for international readers.

Translations::translate_entry( Translation_Entry $entry ) #


Parameters

$entry

(Translation_Entry)(Required)


Top ↑

Source

File: wp-includes/pomo/translations.php

		public function translate_entry( &$entry ) {
			$key = $entry->key();
			return isset( $this->entries[ $key ] ) ? $this->entries[ $key ] : false;
		}

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.