Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




translate_with_context [ WordPress Function ]

translate_with_context ( $text, $domain = 'default' )
Parameters:
  • (string) $text Text to translate
  • (string) $domain Domain to retrieve the translated text
Uses:
See:
Returns:
  • (string) Translated text
Defined at:



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

Source


<?php
function translate_with_context$text$domain 'default' ) {
    
_deprecated_function__FUNCTION__'2.9''_x()' );
    return 
before_last_bartranslate$text$domain ) );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics