Debian Codegraph @

upstream/debian-trixie/man1/ngettext.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
2 .TH NGETTEXT "1" "December 2024" "GNU gettext-runtime 0.23.1" "User Commands"
3 .SH NAME
4 ngettext \- translate message and choose plural form
5 .SH SYNOPSIS
6 .B ngettext
7 [\fI\,OPTION\/\fR] [\fI\,TEXTDOMAIN\/\fR] \fI\,MSGID MSGID-PLURAL COUNT\/\fR
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 The \fBngettext\fP program translates a natural language message into the
11 user's language, by looking up the translation in a message catalog, and
12 chooses the appropriate plural form, which depends on the number \fICOUNT\fP
13 and the language of the message catalog where the translation was found.
14 .PP
15 Display native language translation of a textual message whose grammatical
16 form depends on a number.
17 .TP
18 \fB\-d\fR, \fB\-\-domain\fR=\fI\,TEXTDOMAIN\/\fR
19 retrieve translated message from TEXTDOMAIN
20 .TP
21 \fB\-c\fR, \fB\-\-context\fR=\fI\,CONTEXT\/\fR
22 specify context for MSGID
23 .TP
24 \fB\-e\fR
25 enable expansion of some escape sequences
26 .TP
27 \fB\-E\fR
28 (ignored for compatibility)
29 .TP
30 [TEXTDOMAIN]
31 retrieve translated message from TEXTDOMAIN
32 .TP
33 MSGID MSGID\-PLURAL
34 translate MSGID (singular) / MSGID\-PLURAL (plural)
35 .TP
36 COUNT
37 choose singular/plural form based on this value
38 .SS "Informative output:"
39 .TP
40 \fB\-h\fR, \fB\-\-help\fR
41 display this help and exit
42 .TP
43 \fB\-V\fR, \fB\-\-version\fR
44 display version information and exit
45 .PP
46 If the TEXTDOMAIN parameter is not given, the domain is determined from the
47 environment variable TEXTDOMAIN. If the message catalog is not found in the
48 regular directory, another location can be specified with the environment
49 variable TEXTDOMAINDIR.
50 Standard search directory: /usr/share/locale
51 .SH AUTHOR
52 Written by Ulrich Drepper.
53 .SH "REPORTING BUGS"
54 Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext>
55 or by email to <bug\[email protected]>.
56 .SH COPYRIGHT
57 Copyright \(co 1995\-2024 Free Software Foundation, Inc.
58 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
59 .br
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 .SH "SEE ALSO"
63 The full documentation for
64 .B ngettext
65 is maintained as a Texinfo manual. If the
66 .B info
67 and
68 .B ngettext
69 programs are properly installed at your site, the command
70 .IP
71 .B info ngettext
72 .PP
73 should give you access to the complete manual.