Linux "ngettext" Command Line Options and Examples
translate message and choose plural form

The ngettext program translates a natural language message into the user's language, by looking up the trans‐ lation in a message catalog, and chooses the appropriate plural form, which depends on the number COUNT and the language of the message catalog where the translation was found.


Usage:

ngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT




Command Line Options:

-d
retrieve translated message from TEXTDOMAIN
ngettext -d ...
-e
enable expansion of some escape sequences
ngettext -e ...
-E
(ignored for compatibility)
ngettext -E ...
-h
display this help and exit
ngettext -h ...
-V
display version information and exit[TEXTDOMAIN]retrieve translated message from TEXTDOMAINMSGID MSGID-PLURALtranslate MSGID (singular) / MSGID-PLURAL (plural)COUNT choose singular/plural form based on this valueIf the TEXTDOMAIN parameter is not given, the domain is determined from the environment variable TEXTDOMAIN.If the message catalog is not found in the regular directory, another location can be specified with the envi‐ronment variable TEXTDOMAINDIR. Standard search directory: /usr/share/localeAUTHORWritten by Ulrich Drepper.REPORTING BUGSReport bugs to <bug-gnu-gettext@gnu.org>.COPYRIGHTCopyright © 1995-1997, 2000-2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent per‐mitted by law.
ngettext -V ...