{
    "content": [
        {
            "type": "text",
            "text": "# textdomain (man)\n\n## NAME\n\ntextdomain - set domain for future gettext() calls\n\n## DESCRIPTION\n\nThe textdomain function sets or retrieves the current message domain.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\n- **DESCRIPTION**\n- **RETURN VALUE**\n- **ERRORS**\n- **BUGS**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "textdomain",
        "section": "",
        "mode": "man",
        "summary": "textdomain - set domain for future gettext() calls",
        "synopsis": "",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "gettext",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/gettext/3/json"
            },
            {
                "name": "ngettext",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/ngettext/3/json"
            },
            {
                "name": "bindtextdomain",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/bindtextdomain/3/json"
            },
            {
                "name": "bindtextdomaincodeset",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/bindtextdomaincodeset/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "#include <libintl.h>",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "RETURN VALUE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "ERRORS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "textdomain - set domain for future gettext() calls\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "#include <libintl.h>",
                        "content": "char * textdomain (const char * domainname);\n"
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "The textdomain function sets or retrieves the current message domain.\n\nA message domain is a set of translatable msgid messages. Usually, every software package has\nits own message domain. The domain name is used to determine  the  message  catalog  where  a\ntranslation is looked up; it must be a non-empty string.\n\nThe  current  message domain is used by the gettext, ngettext functions, and by the dgettext,\ndcgettext, dngettext and dcngettext functions when called with a NULL domainname argument.\n\nIf domainname is not NULL, the current message domain is set to domainname.  The  string  the\nfunction stores internally is a copy of the domainname argument.\n\nIf domainname is NULL, the function returns the current message domain.\n",
                "subsections": []
            },
            "RETURN VALUE": {
                "content": "If  successful,  the  textdomain  function returns the current message domain, after possibly\nchanging it. The resulting string is valid until the next textdomain call  and  must  not  be\nmodified or freed. If a memory allocation failure occurs, it sets errno to ENOMEM and returns\nNULL.\n",
                "subsections": []
            },
            "ERRORS": {
                "content": "The following error can occur, among others:\n\nENOMEM Not enough memory available.\n",
                "subsections": []
            },
            "BUGS": {
                "content": "The return type ought to be const char *, but is char * to avoid warnings in C code predating\nANSI C.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "gettext(3), ngettext(3), bindtextdomain(3), bindtextdomaincodeset(3)\n\n\n\nGNU gettext 0.20.1.124-32cf                   May 2001                                 TEXTDOMAIN(3)",
                "subsections": []
            }
        }
    }
}