wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



translate_with_context › WordPress Function

Depuis2.5.0
Dépréciée2.9.0
translate_with_context ( $text, $domain = 'default' )
Paramètres: (2)
  • (string) $text Text to translate.
    Requis: Oui
  • (string) $domain Domain to retrieve the translated text.
    Requis: Non
    Défaut: 'default'
Voir:
Retourne:
  • (string) Translated text.
Défini(e) dans:
Codex:

Translates $text like translate(), but assumes that the text contains a context after its last vertical bar.



Source

function translate_with_context( $text, $domain = 'default' ) {
	_deprecated_function( __FUNCTION__, '2.9.0', '_x()' );
	return before_last_bar( translate( $text, $domain ) );
}