Translates $text like translate() , but assumes that the text contains a context after its last vertical bar.
Description
See also
Parameters
$text
stringrequired- Text to translate.
$domain
stringoptional- Domain to retrieve the translated text.
Default:
'default'
Source
function translate_with_context( $text, $domain = 'default' ) {
_deprecated_function( __FUNCTION__, '2.9.0', '_x()' );
return before_last_bar( translate( $text, $domain ) );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.