gettext: ngettext Invocation
1
1 15.5.2.4 Invoking the ‘ngettext’ program
1 ........................................
1
1 ngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT
1
1 The ‘ngettext’ program displays the native language translation of a
1 textual message whose grammatical form depends on a number.
1
1 *Arguments*
1
1 ‘-d TEXTDOMAIN’
1 ‘--domain=TEXTDOMAIN’
1 Retrieve translated messages from TEXTDOMAIN. Usually a TEXTDOMAIN
1 corresponds to a package, a program, or a module of a program.
1
1 ‘-e’
1 Enable expansion of some escape sequences. This option is for
1 compatibility with the ‘gettext’ program. The escape sequences
1 ‘\a’, ‘\b’, ‘\c’, ‘\f’, ‘\n’, ‘\r’, ‘\t’, ‘\v’, ‘\\’, and ‘\’
1 followed by one to three octal digits, are interpreted like the
1 System V ‘echo’ program did.
1
1 ‘-E’
1 This option is only for compatibility with the ‘gettext’ program.
1 It has no effect.
1
1 ‘-h’
1 ‘--help’
1 Display this help and exit.
1
1 ‘-V’
1 ‘--version’
1 Output version information and exit.
1
1 ‘TEXTDOMAIN’
1 Retrieve translated message from TEXTDOMAIN.
1
1 ‘MSGID MSGID-PLURAL’
1 Translate MSGID (English singular) / MSGID-PLURAL (English plural).
1
1 ‘COUNT’
1 Choose singular/plural form based on this value.
1
1 If the TEXTDOMAIN parameter is not given, the domain is determined
1 from the environment variable ‘TEXTDOMAIN’. If the message catalog is
1 not found in the regular directory, another location can be specified
1 with the environment variable ‘TEXTDOMAINDIR’.
1
1 Note: ‘xgettext’ supports only the three-arguments form of the
1 ‘ngettext’ invocation, where no options are present and the TEXTDOMAIN
1 is implicit, from the environment.
1