Linux Standard Base Core Specification 3.2 | ||
---|---|---|
<<< Previous | Next >>> |
The gettext utility retrieves a translated text string corresponding to string msgid from a message object generated with msgfmt utility.
The message object name is derived from the optional argument
textdomain if
present, otherwise from the TEXTDOMAIN
environment variable. If no domain is
specified, or if a corresponding string cannot be found,
gettext prints
msgid.
Ordinarily gettext
looks for its message object in
dirname/lang/LC_MESSAGES
where dirname
is the implementation-defined default directory and
lang is
the locale name. If present, the TEXTDOMAINDIR
environment variable replaces
the dirname.
This utility interprets C escape sequences such as \t for tab. Use \\ to print a backslash. To produce a message on a line of its own, either put a \n at the end of msgid, or use this command in conjunction with the printf utility.
When used with the -s option the gettext utility behaves like the echo utility, except that the message corresponding to msgid in the selected catalog provides the arguments.
-d domainname, --domain=domainname | PARAMETER translated messages from domainname. | |
-e | Enable expansion of some escape sequences. | |
-n | Suppress trailing newline. |
The following operands are supported:
textdomain | A domain name used to retrieve the messages. | |
msgid | A key to retrieve the localized message. |
<<< Previous | Home | Next >>> |
fuser | Up | grep |