wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_nc › WordPress Function

Seit2.7.0
Veraltet2.9.0
_nc ( $single, $plural, $number, $domain = 'default' )
Parameter: (4)
  • (string) $single The text to be used if the number is singular.
    Erforderlich: Ja
  • (string) $plural The text to be used if the number is plural.
    Erforderlich: Ja
  • (int) $number The number to compare against to use either the singular or plural form.
    Erforderlich: Ja
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Erforderlich: Nein
    Standard: 'default'
Siehe:
Gibt zurück:
  • (string) The translated singular or plural form.
Definiert in:
Codex:

Legacy version of _n(), which supports contexts.

Strips everything from the translation after the last bar.


Ähnliche Funktionen: _n, _c, _nx, _

Quellcode

function _nc( $single, $plural, $number, $domain = 'default' ) {
	_deprecated_function( __FUNCTION__, '2.9.0', '_nx()' );
	return before_last_bar( _n( $single, $plural, $number, $domain ) );
}