| GETTEXT(1) | General Commands Manual | GETTEXT(1) |
gettext — message
translation front-end
gettext |
[-h] |
gettext |
[-en] [textdomain]
msgid |
gettext |
-s [-n]
[msgid ...] |
gettext attempts to translate a given
msgid into the locale-specific string as determined by
the environment. If a translation file is not found, or a translation for
the given msgid is not found, the original string will
be echoed.
If the textdomain is not provided as an
argument, the TEXTDOMAIN environment variable will
be consulted instead.
By default gettext will look for message
catalogs in /usr/share/locale. If the environment
variable TEXTDOMAINDIR is defined, then that will
override the default location.
The following flags are available:
-e-h-n-s is used, do not add the trailing newline. If
-s is not provided, this flag will do
nothing.-sTEXTDOMAINTEXTDOMAINDIRThe gettext utility exits 0 on
success, and >0 if an error occurs.
$ LANG=es gettext grep 'writing output' escribiendo el resultado
| June 3, 2015 | NetBSD 11.0 |