{
    "content": [
        {
            "type": "text",
            "text": "# Dpkg::Gettext (perldoc)\n\n## NAME\n\nDpkg::Gettext - convenience wrapper around Locale::gettext\n\n## DESCRIPTION\n\nThe Dpkg::Gettext module is a convenience wrapper over the Locale::gettext module, to guarantee\nwe always have working gettext functions, and to add some commonly used aliases.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **ENVIRONMENT**\n- **VARIABLES**\n- **FUNCTIONS**\n- **CHANGES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Dpkg::Gettext",
        "section": "",
        "mode": "perldoc",
        "summary": "Dpkg::Gettext - convenience wrapper around Locale::gettext",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "VARIABLES",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 27,
                "subsections": []
            },
            {
                "name": "CHANGES",
                "lines": 19,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Dpkg::Gettext - convenience wrapper around Locale::gettext\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The Dpkg::Gettext module is a convenience wrapper over the Locale::gettext module, to guarantee\nwe always have working gettext functions, and to add some commonly used aliases.\n",
                "subsections": []
            },
            "ENVIRONMENT": {
                "content": "DPKGNLS\nWhen set to 0, this environment variable will disable the National Language Support in all\nDpkg modules.\n",
                "subsections": []
            },
            "VARIABLES": {
                "content": "$Dpkg::Gettext::DEFAULTTEXTDOMAIN\nSpecifies the default text domain name to be used with the short function aliases. This is\nintended to be used by the Dpkg modules, so that they can produce localized messages even\nwhen the calling program has set the current domain with textdomain(). If you would like to\nuse the aliases for your own modules, you might want to set this variable to undef, or to\nanother domain, but then the Dpkg modules will not produce localized messages.\n",
                "subsections": []
            },
            "FUNCTIONS": {
                "content": "$domain = textdomain($newdomain)\nCompatibility textdomain() fallback when Locale::gettext is not available.\n\nIf $newdomain is not undef, it will set the current domain to $newdomain. Returns the\ncurrent domain, after possibly changing it.\n\n$trans = ngettext($msgid, $msgidplural, $n)\nCompatibility ngettext() fallback when Locale::gettext is not available.\n\nReturns $msgid if $n is 1 or $msgidplural otherwise.\n\n$trans = g($msgid)\nCalls dgettext() on the $msgid and returns its translation for the current locale. If\ndgettext() is not available, simply returns $msgid.\n\n$trans = C($msgctxt, $msgid)\nCalls dgettext() on the $msgid and returns its translation for the specific $msgctxt\nsupplied. If dgettext() is not available, simply returns $msgid.\n\n$trans = P($msgid, $msgidplural, $n)\nCalls dngettext(), returning the correct translation for the plural form dependent on $n. If\ndngettext() is not available, returns $msgid if $n is 1 or $msgidplural otherwise.\n\n$msgid = N($msgid)\nA pseudo function that servers as a marked for automated extraction of messages, but does\nnot call gettext(). The run-time translation is done at a different place in the code.\n",
                "subsections": []
            },
            "CHANGES": {
                "content": "Version 2.00 (dpkg 1.20.0)\nRemove function: g().\n\nVersion 1.03 (dpkg 1.19.0)\nNew envvar: Add support for new DPKGNLS environment variable.\n\nVersion 1.02 (dpkg 1.18.3)\nNew function: N().\n\nVersion 1.01 (dpkg 1.18.0)\nNow the short aliases (g and P) will call domain aware functions with $DEFAULTTEXTDOMAIN.\n\nNew functions: g(), C().\n\nDeprecated function: g().\n\nVersion 1.00 (dpkg 1.15.6)\nMark the module as public.\n",
                "subsections": []
            }
        }
    }
}