1NGETTEXT(1) User Commands NGETTEXT(1)
2
3
4
6 ngettext - translate message and choose plural form
7
9 ngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT
10
12 The ngettext program translates a natural language message into the
13 user's language, by looking up the translation in a message catalog,
14 and chooses the appropriate plural form, which depends on the number
15 COUNT and the language of the message catalog where the translation was
16 found.
17
18 Display native language translation of a textual message whose grammat‐
19 ical form depends on a number.
20
21 -d, --domain=TEXTDOMAIN
22 retrieve translated message from TEXTDOMAIN
23
24 -c, --context=CONTEXT
25 specify context for MSGID
26
27 -e enable expansion of some escape sequences
28
29 -E (ignored for compatibility)
30
31 [TEXTDOMAIN]
32 retrieve translated message from TEXTDOMAIN
33
34 MSGID MSGID-PLURAL
35 translate MSGID (singular) / MSGID-PLURAL (plural)
36
37 COUNT choose singular/plural form based on this value
38
39 Informative output:
40 -h, --help
41 display this help and exit
42
43 -V, --version
44 display version information and exit
45
46 If the TEXTDOMAIN parameter is not given, the domain is determined from
47 the environment variable TEXTDOMAIN. If the message catalog is not
48 found in the regular directory, another location can be specified with
49 the environment variable TEXTDOMAINDIR. Standard search directory:
50 /usr/share/locale
51
53 Written by Ulrich Drepper.
54
56 Report bugs in the bug tracker at <https://savan‐
57 nah.gnu.org/projects/gettext> or by email to <bug-gettext@gnu.org>.
58
60 Copyright © 1995-1997, 2000-2023 Free Software Foundation, Inc. Li‐
61 cense GPLv3+: GNU GPL version 3 or later <https://gnu.org/li‐
62 censes/gpl.html>
63 This is free software: you are free to change and redistribute it.
64 There is NO WARRANTY, to the extent permitted by law.
65
67 The full documentation for ngettext is maintained as a Texinfo manual.
68 If the info and ngettext programs are properly installed at your site,
69 the command
70
71 info ngettext
72
73 should give you access to the complete manual.
74
75
76
77GNU gettext-runtime 0.22 June 2023 NGETTEXT(1)