1GETTEXT(1)                       User Commands                      GETTEXT(1)
2
3
4

NAME

6       gettext - translate message
7

SYNOPSIS

9       gettext [OPTION] [[TEXTDOMAIN] MSGID]
10       gettext [OPTION] -s [MSGID]...
11

DESCRIPTION

13       The  gettext  program  translates  a  natural language message into the
14       user's language, by looking up the translation in a message catalog.
15
16       Display native language translation of a textual message.
17
18       -d, --domain=TEXTDOMAIN
19              retrieve translated messages from TEXTDOMAIN
20
21       -c, --context=CONTEXT
22              specify context for MSGID
23
24       -e     enable expansion of some escape sequences
25
26       -n     suppress trailing newline
27
28       -E     (ignored for compatibility)
29
30       [TEXTDOMAIN] MSGID
31              retrieve translated message corresponding to MSGID from  TEXTDO‐
32              MAIN
33
34   Informative output:
35       -h, --help
36              display this help and exit
37
38       -V, --version
39              display version information and exit
40
41       If the TEXTDOMAIN parameter is not given, the domain is determined from
42       the environment variable TEXTDOMAIN.  If the  message  catalog  is  not
43       found  in the regular directory, another location can be specified with
44       the environment variable TEXTDOMAINDIR.  When used with the  -s  option
45       the  program  behaves  like the 'echo' command.  But it does not simply
46       copy its arguments to stdout.  Instead those messages found in the  se‐
47       lected    catalog   are   translated.    Standard   search   directory:
48       /usr/share/locale
49

AUTHOR

51       Written by Ulrich Drepper.
52

REPORTING BUGS

54       Report    bugs    in    the    bug    tracker    at     <https://savan
55       nah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>.
56
58       Copyright  ©  1995-2022 Free Software Foundation, Inc.  License GPLv3+:
59       GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
60       This is free software: you are free  to  change  and  redistribute  it.
61       There is NO WARRANTY, to the extent permitted by law.
62

SEE ALSO

64       The  full  documentation for gettext is maintained as a Texinfo manual.
65       If the info and gettext programs are properly installed at  your  site,
66       the command
67
68              info gettext
69
70       should give you access to the complete manual.
71
72
73
74GNU gettext-runtime 0.21.1       October 2022                       GETTEXT(1)
Impressum