Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
GETTEXT(3) | Library Functions Manual | GETTEXT(3) |
NAME
gettext, dgettext, dcgettext - translate messageSYNOPSIS
#include <libintl.h>char * gettext (const char * msgid);
char * dgettext (const char * domainname, const char * msgid);
char * dcgettext (const char * domainname, const char * msgid,
int category);
DESCRIPTION
The gettext, dgettext and dcgettext functions attempt to translate a text string into the user's native language, by looking up the translation in a message catalog.RETURN VALUE
If a translation was found in one of the specified catalogs, it is converted to the locale's codeset and returned. The resulting string is statically allocated and must not be modified or freed. Otherwise msgid is returned.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
ngettext(3), dngettext(3), dcngettext(3), setlocale(3), textdomain(3), bindtextdomain(3), bind_textdomain_codeset(3), msgfmt(1)May 2001 | GNU gettext 0.20.1.124-32cf |