_nc
- _nc is deprecated since version 2.9.0!
Alternative: _nx()
_nc ( $single, $plural, $number, $domain = 'default' )
Parameters:- (string) single The text to be used if the number is singular.
- (string) plural The text to be used if the number is plural.
- (int) number The number to compare against to use either the singular or plural form.
- (string) domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
See:Returns:- (string) The translated singular or plural form.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: 2.9.0
Description
Legacy version of _n(), which supports contexts.Strips everything from the translation after the last bar.