wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_nc › WordPress Function

Od2.7.0
Przestarzały2.9.0
_nc ( $single, $plural, $number, $domain = 'default' )
Parametry: (4)
  • (string) $single The text to be used if the number is singular.
    Wymagane: Tak
  • (string) $plural The text to be used if the number is plural.
    Wymagane: Tak
  • (int) $number The number to compare against to use either the singular or plural form.
    Wymagane: Tak
  • (string) $domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
    Wymagane: Nie
    Domyślny: 'default'
Zobacz:
Powrót:
  • (string) The translated singular or plural form.
Zdefiniowane na:
Codex:

Legacy version of _n(), which supports contexts.

Strips everything from the translation after the last bar.


Powiązane Funkcje: _n, _c, _nx, _

Źródło

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