{
    "content": [
        {
            "type": "text",
            "text": "# ngettext(1) (man)\n\n**Summary:** ngettext - translate message and choose plural form\n\n**Synopsis:** ngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -d | --domain | — | retrieve translated message from TEXTDOMAIN |\n| -c | --context | — | specify context for MSGID |\n| -e | — | — |  |\n| -E | — | — | [TEXTDOMAIN] retrieve translated message from TEXTDOMAIN MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (p |\n| -h | --help | — | display this help and exit |\n| -V | --version | — | display version information and exit If the TEXTDOMAIN parameter is not given, the domain is determined from the environ |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (8 lines) — 7 subsections\n  - -d --domain (2 lines)\n  - -c --context (2 lines)\n  - -e (1 lines)\n  - -E (8 lines)\n  - Informative output: (1 lines)\n  - -h --help (2 lines)\n  - -V --version (7 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (10 lines)\n\n## Full Content\n\n### NAME\n\nngettext - translate message and choose plural form\n\n### SYNOPSIS\n\nngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT\n\n### DESCRIPTION\n\nThe ngettext program translates a natural language message into the user's language, by look‐\ning up the translation in a message catalog, and chooses the appropriate plural  form,  which\ndepends on the number COUNT and the language of the message catalog where the translation was\nfound.\n\nDisplay native language translation of a textual message whose grammatical form depends on  a\nnumber.\n\n#### -d --domain\n\nretrieve translated message from TEXTDOMAIN\n\n#### -c --context\n\nspecify context for MSGID\n\n#### -e\n\n#### -E\n\n[TEXTDOMAIN]\nretrieve translated message from TEXTDOMAIN\n\nMSGID MSGID-PLURAL\ntranslate MSGID (singular) / MSGID-PLURAL (plural)\n\nCOUNT  choose singular/plural form based on this value\n\n#### Informative output:\n\n#### -h --help\n\ndisplay this help and exit\n\n#### -V --version\n\ndisplay version information and exit\n\nIf the TEXTDOMAIN parameter is not given, the domain is determined from the environment vari‐\nable TEXTDOMAIN.  If the message catalog is not found in the regular directory, another loca‐\ntion  can  be  specified with the environment variable TEXTDOMAINDIR.  Standard search direc‐\ntory: /usr/share/locale\n\n### AUTHOR\n\nWritten by Ulrich Drepper.\n\n### REPORTING BUGS\n\nReport bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email  to\n<bug-gettext@gnu.org>.\n\n### COPYRIGHT\n\nCopyright © 1995-1997, 2000-2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL ver‐\nsion 3 or later <https://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n\n### SEE ALSO\n\nThe full documentation for ngettext is maintained as a Texinfo manual.  If the info and nget‐‐\ntext programs are properly installed at your site, the command\n\ninfo ngettext\n\nshould give you access to the complete manual.\n\n\n\nGNU gettext-runtime 0.21                     March 2022                                  NGETTEXT(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "ngettext",
        "section": "1",
        "mode": "man",
        "summary": "ngettext - translate message and choose plural form",
        "synopsis": "ngettext [OPTION] [TEXTDOMAIN] MSGID MSGID-PLURAL COUNT",
        "flags": [
            {
                "flag": "-d",
                "long": "--domain",
                "arg": null,
                "description": "retrieve translated message from TEXTDOMAIN"
            },
            {
                "flag": "-c",
                "long": "--context",
                "arg": null,
                "description": "specify context for MSGID"
            },
            {
                "flag": "-e",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-E",
                "long": null,
                "arg": null,
                "description": "[TEXTDOMAIN] retrieve translated message from TEXTDOMAIN MSGID MSGID-PLURAL translate MSGID (singular) / MSGID-PLURAL (plural) COUNT choose singular/plural form based on this value"
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "display this help and exit"
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "display version information and exit If the TEXTDOMAIN parameter is not given, the domain is determined from the environment vari‐ able TEXTDOMAIN. If the message catalog is not found in the regular directory, another loca‐ tion can be specified with the environment variable TEXTDOMAINDIR. Standard search direc‐ tory: /usr/share/locale"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": [
                    {
                        "name": "-d --domain",
                        "lines": 2,
                        "flag": "-d",
                        "long": "--domain"
                    },
                    {
                        "name": "-c --context",
                        "lines": 2,
                        "flag": "-c",
                        "long": "--context"
                    },
                    {
                        "name": "-e",
                        "lines": 1,
                        "flag": "-e"
                    },
                    {
                        "name": "-E",
                        "lines": 8,
                        "flag": "-E"
                    },
                    {
                        "name": "Informative output:",
                        "lines": 1
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-V --version",
                        "lines": 7,
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 10,
                "subsections": []
            }
        ]
    }
}