_nc()WP 2.7.0

Устарела с версии 3.0.0. Больше не поддерживается и может быть удалена. Используйте _nx().

Legacy version of _n(), which supports contexts.

Strips everything from the translation after the last bar.

Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.

Хуков нет.

Возвращает

Строку. The translated singular or plural form.

Использование

_nc( $single, $plural, $number, $domain );
$single(строка) (обязательный)
The text to be used if the number is singular.
$plural(строка) (обязательный)
The text to be used if the number is plural.
$number(int) (обязательный)
The number to compare against to use either the singular or plural form.
$domain(строка)
Text domain. Unique identifier for retrieving translated strings.
По умолчанию: 'default'

Заметки

  • Смотрите: _nx()

Список изменений

С версии 2.7.0 Введена.
Устарела с 3.0.0 Use _nx()

Код _nc() WP 6.5.2

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