Function: ngettext
ngettext is a function defined in editfns.c.
Signature
(ngettext MSGID MSGID-PLURAL N)
Documentation
Return the translation of MSGID (plural MSGID-PLURAL) depending on N.
MSGID is the singular form of the string to be converted; use it as the key for the search in the translation catalog. MSGID-PLURAL is the plural form. Use N to select the proper translation. If no message catalog is found, MSGID is returned if N is equal to 1, otherwise MSGID-PLURAL.
Probably introduced at or before Emacs version 27.1.
Source Code
// Defined in /usr/src/emacs/src/editfns.c
{
CHECK_STRING (msgid);
CHECK_STRING (msgid_plural);
CHECK_INTEGER (n);
/* Placeholder implementation until we get our act together. */
return EQ (n, make_fixnum (1)) ? msgid : msgid_plural;
}