ngettext
is the plural version of
gettext
, which searches for the message
string using the msgid1 arguments
as the key, using the argument n
to determine the plural form. If no message catalogs
containing a translation for msgid1
are found, msgid1 is returned if
n == 1, otherwise,
msgid2 is returned. (See
gettext
for more details.)
A NULL-terminated string to be matched in the catalogue with respect to a specific domain and the current locale. If no message catalogs are found, msgid1 is returned if n == 1.
A NULL-terminated string to be returned if no message catalogs are found and n != 1.
Determines in which plural form a message string is returned, in a language and message catalog dependent way.
If the function query above succeeds with msgid1, then a translated NULL-terminated string is returned. If the search fails, then the original msgid1 or msgid2 is returned, according to n.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset