Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
NGETTEXT(3) | Library Functions Manual | NGETTEXT(3) |
NAME
ngettext, dngettext, dcngettext - translate message and choose plural formSYNOPSIS
#include <libintl.h>char * ngettext (const char * msgid, const char * msgid_plural,
unsigned long int n);
char * dngettext (const char * domainname,
const char * msgid, const char * msgid_plural,
unsigned long int n);
char * dcngettext (const char * domainname,
const char * msgid, const char * msgid_plural,
unsigned long int n, int category);
DESCRIPTION
The ngettext, dngettext and dcngettext functions attempt to translate a text string into the user's native language, by looking up the appropriate plural form of the translation in a message catalog.RETURN VALUE
If a translation was found in one of the specified catalogs, the appropriate plural form is converted to the locale's codeset and returned. The resulting string is statically allocated and must not be modified or freed. Otherwise msgid or msgid_plural is returned, as described above.ERRORS
errno is not modified.BUGS
The return type ought to be const char *, but is char * to avoid warnings in C code predating ANSI C.SEE ALSO
gettext(3), dgettext(3), dcgettext(3)May 2001 | GNU gettext 0.20.1.124-32cf |