{
    "mode": "info",
    "parameter": "ngettext",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/ngettext/json",
    "generated": "2026-11-15T00:18:39Z",
    "sections": {
        "File: gettext.info,  Node: ngettext Invocation,  Next: envsubst Invocation,  Prev: gettext Invocation,  Up: sh": {
            "content": "15.5.12.4 Invoking the 'ngettext' program\n.........................................\n\nngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n\nThe 'ngettext' program displays the native language translation of a\ntextual message whose grammatical form depends on a number.\n\n*Arguments*\n\n'-c CONTEXT'\n'--context=CONTEXT'\nSpecify the context for the messages to be translated.  See *note\nContexts:: for details.\n\n'-d TEXTDOMAIN'\n'--domain=TEXTDOMAIN'\nRetrieve translated messages from TEXTDOMAIN.  Usually a TEXTDOMAIN\ncorresponds to a package, a program, or a module of a program.\n\n'-e'\nEnable expansion of some escape sequences.  This option is for\ncompatibility with the 'gettext' program.  The escape sequences\n'\\a', '\\b', '\\f', '\\n', '\\r', '\\t', '\\v', '\\\\', and '\\' followed by\none to three octal digits, are interpreted like the System V 'echo'\nprogram did.\n\n'-E'\nThis option is only for compatibility with the 'gettext' program.\nIt has no effect.\n\n'-h'\n'--help'\nDisplay this help and exit.\n\n'-V'\n'--version'\nOutput version information and exit.\n\n'TEXTDOMAIN'\nRetrieve translated message from TEXTDOMAIN.\n\n'MSGID MSGID-PLURAL'\nTranslate MSGID (English singular) / MSGID-PLURAL (English plural).\n\n'COUNT'\nChoose singular/plural form based on this value.\n\nIf the TEXTDOMAIN parameter is not given, the domain is determined\nfrom the environment variable 'TEXTDOMAIN'.  If the message catalog is\nnot found in the regular directory, another location can be specified\nwith the environment variable 'TEXTDOMAINDIR'.\n\nNote: 'xgettext' supports only the three-arguments form of the\n'ngettext' invocation, where no options are present and the TEXTDOMAIN\nis implicit, from the environment.\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}