Debian Codegraph @

upstream/debian-unstable/man1/ngettext.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.6.
2 .TH NGETTEXT "1" "July 2025" "GNU gettext-runtime 0.26" "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 .SS "Options and arguments:"
18 .TP
19 \fB\-d\fR, \fB\-\-domain\fR=\fI\,TEXTDOMAIN\/\fR
20 retrieve translated message from TEXTDOMAIN
21 .TP
22 \fB\-c\fR, \fB\-\-context\fR=\fI\,CONTEXT\/\fR
23 specify context for MSGID
24 .TP
25 \fB\-e\fR
26 enable expansion of some escape sequences
27 .TP
28 \fB\-E\fR
29 (ignored for compatibility)
30 .TP
31 [TEXTDOMAIN]
32 retrieve translated message from TEXTDOMAIN
33 .TP
34 MSGID MSGID\-PLURAL
35 translate MSGID (singular) / MSGID\-PLURAL (plural)
36 .TP
37 COUNT
38 choose singular/plural form based on this value
39 .SS "Informative output:"
40 .TP
41 \fB\-h\fR, \fB\-\-help\fR
42 display this help and exit
43 .TP
44 \fB\-V\fR, \fB\-\-version\fR
45 display version information and exit
46 .PP
47 If the TEXTDOMAIN parameter is not given, the domain is determined from the
48 environment variable TEXTDOMAIN. If the message catalog is not found in the
49 regular directory, another location can be specified with the environment
50 variable TEXTDOMAINDIR.
51 Standard search directory: /usr/share/locale
52 .SH AUTHOR
53 Written by Ulrich Drepper.
54 .SH "REPORTING BUGS"
55 Report bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext>
56 or by email to <bug\[email protected]>.
57 .SH COPYRIGHT
58 Copyright \(co 1995\-2025 Free Software Foundation, Inc.
59 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
60 .br
61 This is free software: you are free to change and redistribute it.
62 There is NO WARRANTY, to the extent permitted by law.
63 .SH "SEE ALSO"
64 The full documentation for
65 .B ngettext
66 is maintained as a Texinfo manual. If the
67 .B info
68 and
69 .B ngettext
70 programs are properly installed at your site, the command
71 .IP
72 .B info ngettext
73 .PP
74 should give you access to the complete manual.