Translations::translate_entry( Translation_Entry $entry ): Translation_Entry|false

In this article

Returns a given translation entry.

Parameters

$entryTranslation_Entryrequired
Translation entry.

Return

Translation_Entry|false Translation entry if it exists, false otherwise.

Source

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

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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