Linux "gettext" Command Line Options and Examples
translate message

The gettext program translates a natural language message into the user's language, by looking up the translation in a message cata‐ log. Display native language translation of a textual message.


Usage:

gettext [OPTION] [[TEXTDOMAIN] MSGID]
    gettext [OPTION] -s [MSGID]...




Command Line Options:

-d
retrieve translated messages from TEXTDOMAIN
gettext -d ...
-e
enable expansion of some escape sequences
gettext -e ...
-E
(ignored for compatibility)
gettext -E ...
-h
display this help and exit
gettext -h ...
-n
suppress trailing newline
gettext -n ...
-V
display version information and exit[TEXTDOMAIN] MSGIDretrieve translated message corresponding to MSGID from TEXTDOMAINIf the TEXTDOMAIN parameter is not given, the domain is determined from the environment variable TEXTDOMAIN. If the message catalogis not found in the regular directory, another location can be specified with the environment variable TEXTDOMAINDIR. When used withthe -s option the program behaves like the 'echo' command. But it does not simply copy its arguments to stdout. Instead those mes‐sages found in the selected catalog are translated. Standard search directory: /usr/share/localeAUTHORWritten by Ulrich Drepper.REPORTING BUGSReport bugs to <bug-gnu-gettext@gnu.org>.COPYRIGHTCopyright © 1995-1997, 2000-2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
gettext -V ...