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



_x › WordPress Function

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:

Retrieves 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, _, __, _c

Sorgenti

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