Un motore di ricerca WordPress per sviluppatori e autori di temi



_x ›

Da2.8.0
Deprecaton/a
_x ( $text, $context, $domain = 'default' )
Parametri: (3)
  • (string) $text Text to translate.
    Richiesto:
  • (string) $context Context information for the translators.
    Richiesto:
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Richiesto: No
    Default: 'default'
Ritorna:
  • (string) Translated context string without pipe.
Definito a:
Codex:

Retrieve translated string with gettext context.

Quite a few times, there will be collisions with similar translatable text found in more than two places, but with different translated context.

By including the context in the pot file, translators can translate the two strings differently.



Funzioni correlate: _nx, _ex, _, is_tax, __

Sorgenti

function _x( $text, $context, $domain = 'default' ) {
	return translate_with_gettext_context( $text, $context, $domain );
}