2 @cindex @code{ngettext} program, usage
4 ngettext [@var{option}] [@var{textdomain}] @var{msgid} @var{msgid-plural} @var{count}
7 @cindex lookup plural message translation
8 The @code{ngettext} program displays the native language translation of a
9 textual message whose grammatical form depends on a number.
11 @noindent @strong{Arguments}
14 @item -d @var{textdomain}
15 @itemx --domain=@var{textdomain}
16 @opindex -d@r{, @code{ngettext} option}
17 @opindex --domain@r{, @code{ngettext} option}
18 Retrieve translated messages from @var{textdomain}. Usually a @var{textdomain}
19 corresponds to a package, a program, or a module of a program.
22 @opindex -e@r{, @code{ngettext} option}
23 Enable expansion of some escape sequences. This option is for compatibility
24 with the @samp{gettext} program. The escape sequences
25 @samp{\a}, @samp{\b}, @samp{\c}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t},
26 @samp{\v}, @samp{\\}, and @samp{\} followed by one to three octal digits, are
27 interpreted like the SystemV @samp{echo} program does.
30 @opindex -E@r{, @code{ngettext} option}
31 This option is only for compatibility with the @samp{gettext} program. It has
36 @opindex -h@r{, @code{ngettext} option}
37 @opindex --help@r{, @code{ngettext} option}
38 Display this help and exit.
42 @opindex -V@r{, @code{ngettext} option}
43 @opindex --version@r{, @code{ngettext} option}
44 Output version information and exit.
46 @item @var{textdomain}
47 Retrieve translated message from @var{textdomain}.
49 @item @var{msgid} @var{msgid-plural}
50 Translate @var{msgid} (English singular) / @var{msgid-plural} (English plural).
53 Choose singular/plural form based on this value.
57 If the @var{textdomain} parameter is not given, the domain is determined from
58 the environment variable @code{TEXTDOMAIN}. If the message catalog is not
59 found in the regular directory, another location can be specified with the
60 environment variable @code{TEXTDOMAINDIR}.