wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



translate_with_context › WordPress Function

Da2.5.0
Deprecato2.9.0
translate_with_context ( $text, $domain = 'default' )
Parametri: (2)
  • (string) $text Text to translate.
    Richiesto:
  • (string) $domain Domain to retrieve the translated text.
    Richiesto: No
    Default: 'default'
Vedi:
Ritorna:
  • (string) Translated text.
Definito a:
Codex:

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



Sorgenti

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