The gettext
function shall search the currently
selected message catalogs for a string identified by the string
msgid. If a string is located,
that string shall be returned.
The gettext
function is equivalent to
dcgettext(NULL, msgid, LC_MESSAGES)
.
If a string is found in the currently selected message catalogs for msgid, then a pointer to that string shall be returned. Otherwise, a pointer to msgid shall be returned.
Applications shall not modify the string returned by gettext
.