summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-leap-15-6/man1/gettext.1
blob: 005c1eff23cd7e575dbb764dc232ff1dcdcdb142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.6.
.TH GETTEXT "1" "October 2022" "GNU gettext-runtime 0.21.1" "User Commands"
.SH NAME
gettext \- translate message
.SH SYNOPSIS
.B gettext
[\fI\,OPTION\/\fR] [[\fI\,TEXTDOMAIN\/\fR] \fI\,MSGID\/\fR]
.br
.B gettext
[\fI\,OPTION\/\fR] \fI\,-s \/\fR[\fI\,MSGID\/\fR]...
.SH DESCRIPTION
.\" Add any additional description here
The \fBgettext\fP program translates a natural language message into the
user's language, by looking up the translation in a message catalog.
.PP
Display native language translation of a textual message.
.TP
\fB\-d\fR, \fB\-\-domain\fR=\fI\,TEXTDOMAIN\/\fR
retrieve translated messages from TEXTDOMAIN
.TP
\fB\-c\fR, \fB\-\-context\fR=\fI\,CONTEXT\/\fR
specify context for MSGID
.TP
\fB\-e\fR
enable expansion of some escape sequences
.TP
\fB\-n\fR
suppress trailing newline
.TP
\fB\-E\fR
(ignored for compatibility)
.TP
[TEXTDOMAIN] MSGID
retrieve translated message corresponding
to MSGID from TEXTDOMAIN
.SS "Informative output:"
.TP
\fB\-h\fR, \fB\-\-help\fR
display this help and exit
.TP
\fB\-V\fR, \fB\-\-version\fR
display version information and exit
.PP
If the TEXTDOMAIN parameter is not given, the domain is determined from the
environment variable TEXTDOMAIN.  If the message catalog is not found in the
regular directory, another location can be specified with the environment
variable TEXTDOMAINDIR.
When used with the \fB\-s\fR option the program behaves like the 'echo' command.
But it does not simply copy its arguments to stdout.  Instead those messages
found in the selected catalog are translated.
Standard search directory: /usr/share/locale
.SH AUTHOR
Written by Ulrich Drepper.
.SH "REPORTING BUGS"
Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext>
or by email to <bug\-gettext@gnu.org>.
.SH COPYRIGHT
Copyright \(co 1995\-2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
The full documentation for
.B gettext
is maintained as a Texinfo manual.  If the
.B info
and
.B gettext
programs are properly installed at your site, the command
.IP
.B info gettext
.PP
should give you access to the complete manual.