{
    "content": [
        {
            "type": "text",
            "text": "# msginit (man)\n\n## NAME\n\nmsginit - initialize a message catalog\n\n## SYNOPSIS\n\nmsginit [OPTION]\n\n## DESCRIPTION\n\nCreates a new PO file, initializing the meta information with values from the user's environ‐\nment.\n\n## TLDR\n\n> Generate language specific translation files based on Portable Object Templates.\n\n- Generate Portable Object files in system locale from `messages.pot`:\n  `msginit`\n- Define locale to generate from a specific template:\n  `msginit {{-l|--locale}} {{locale}} {{-i|--input}} {{path/to/messages.pot}}`\n- Display help:\n  `msginit {{-h|--help}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (18 subsections)\n- **AUTHOR**\n- **REPORTING BUGS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "msginit",
        "section": "",
        "mode": "man",
        "summary": "msginit - initialize a message catalog",
        "synopsis": "msginit [OPTION]",
        "tldr_summary": "Generate language specific translation files based on Portable Object Templates.",
        "tldr_examples": [
            {
                "description": "Generate Portable Object files in system locale from `messages.pot`",
                "command": "msginit"
            },
            {
                "description": "Define locale to generate from a specific template",
                "command": "msginit {{-l|--locale}} {{locale}} {{-i|--input}} {{path/to/messages.pot}}"
            },
            {
                "description": "Display help",
                "command": "msginit {{-h|--help}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-i",
                "long": "--input",
                "arg": null,
                "description": "input POT file If no input file is given, the current directory is searched for the POT file. If it is -, standard input is read."
            },
            {
                "flag": "-o",
                "long": "--output-file",
                "arg": null,
                "description": "write output to specified PO file If no output file is given, it depends on the --locale option or the user's locale setting. If it is -, the results are written to standard output."
            },
            {
                "flag": "-P",
                "long": "--properties-input",
                "arg": null,
                "description": "input file is in Java .properties syntax"
            },
            {
                "flag": "",
                "long": "--stringtable-input",
                "arg": null,
                "description": "input file is in NeXTstep/GNUstep .strings syntax"
            },
            {
                "flag": "-l",
                "long": "--locale",
                "arg": null,
                "description": "set target locale"
            },
            {
                "flag": "",
                "long": "--no-translator",
                "arg": null,
                "description": "assume the PO file is automatically generated"
            },
            {
                "flag": "",
                "long": "--color",
                "arg": null,
                "description": "use colors and other text attributes always --color=WHEN use colors and other text attributes if WHEN. WHEN may be 'always', 'never', 'auto', or 'html'. --style=STYLEFILE specify CSS style rule file for --color"
            },
            {
                "flag": "-p",
                "long": "--properties-output",
                "arg": null,
                "description": "write out a Java .properties file"
            },
            {
                "flag": "",
                "long": "--stringtable-output",
                "arg": null,
                "description": "write out a NeXTstep/GNUstep .strings file"
            },
            {
                "flag": "-w",
                "long": "--width",
                "arg": null,
                "description": "set output page width"
            },
            {
                "flag": "",
                "long": "--no-wrap",
                "arg": null,
                "description": "do not break long message lines, longer than the output page width, into several lines"
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "display this help and exit"
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit"
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": [
                    {
                        "name": "Input file location:",
                        "lines": 1
                    },
                    {
                        "name": "-i --input",
                        "lines": 5,
                        "flag": "-i",
                        "long": "--input"
                    },
                    {
                        "name": "Output file location:",
                        "lines": 1
                    },
                    {
                        "name": "-o --output-file",
                        "lines": 5,
                        "flag": "-o",
                        "long": "--output-file"
                    },
                    {
                        "name": "Input file syntax:",
                        "lines": 1
                    },
                    {
                        "name": "-P --properties-input",
                        "lines": 2,
                        "flag": "-P",
                        "long": "--properties-input"
                    },
                    {
                        "name": "--stringtable-input",
                        "lines": 2,
                        "long": "--stringtable-input"
                    },
                    {
                        "name": "Output details:",
                        "lines": 1
                    },
                    {
                        "name": "-l --locale",
                        "lines": 2,
                        "flag": "-l",
                        "long": "--locale"
                    },
                    {
                        "name": "--no-translator",
                        "lines": 2,
                        "long": "--no-translator"
                    },
                    {
                        "name": "--color",
                        "lines": 9,
                        "long": "--color"
                    },
                    {
                        "name": "-p --properties-output",
                        "lines": 2,
                        "flag": "-p",
                        "long": "--properties-output"
                    },
                    {
                        "name": "--stringtable-output",
                        "lines": 2,
                        "long": "--stringtable-output"
                    },
                    {
                        "name": "-w --width",
                        "lines": 2,
                        "flag": "-w",
                        "long": "--width"
                    },
                    {
                        "name": "--no-wrap",
                        "lines": 2,
                        "long": "--no-wrap"
                    },
                    {
                        "name": "Informative output:",
                        "lines": 1
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "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": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "msginit - initialize a message catalog\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "msginit [OPTION]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Creates a new PO file, initializing the meta information with values from the user's environ‐\nment.\n\nMandatory arguments to long options are mandatory for short options too.\n",
                "subsections": [
                    {
                        "name": "Input file location:",
                        "content": ""
                    },
                    {
                        "name": "-i --input",
                        "content": "input POT file\n\nIf no input file is given, the current directory is searched for the POT file.  If it  is  -,\nstandard input is read.\n",
                        "flag": "-i",
                        "long": "--input"
                    },
                    {
                        "name": "Output file location:",
                        "content": ""
                    },
                    {
                        "name": "-o --output-file",
                        "content": "write output to specified PO file\n\nIf  no  output file is given, it depends on the --locale option or the user's locale setting.\nIf it is -, the results are written to standard output.\n",
                        "flag": "-o",
                        "long": "--output-file"
                    },
                    {
                        "name": "Input file syntax:",
                        "content": ""
                    },
                    {
                        "name": "-P --properties-input",
                        "content": "input file is in Java .properties syntax\n",
                        "flag": "-P",
                        "long": "--properties-input"
                    },
                    {
                        "name": "--stringtable-input",
                        "content": "input file is in NeXTstep/GNUstep .strings syntax\n",
                        "long": "--stringtable-input"
                    },
                    {
                        "name": "Output details:",
                        "content": ""
                    },
                    {
                        "name": "-l --locale",
                        "content": "set target locale\n",
                        "flag": "-l",
                        "long": "--locale"
                    },
                    {
                        "name": "--no-translator",
                        "content": "assume the PO file is automatically generated\n",
                        "long": "--no-translator"
                    },
                    {
                        "name": "--color",
                        "content": "use colors and other text attributes always\n\n--color=WHEN\nuse colors and other text attributes if WHEN.  WHEN may be 'always', 'never',  'auto',\nor 'html'.\n\n--style=STYLEFILE\nspecify CSS style rule file for --color\n",
                        "long": "--color"
                    },
                    {
                        "name": "-p --properties-output",
                        "content": "write out a Java .properties file\n",
                        "flag": "-p",
                        "long": "--properties-output"
                    },
                    {
                        "name": "--stringtable-output",
                        "content": "write out a NeXTstep/GNUstep .strings file\n",
                        "long": "--stringtable-output"
                    },
                    {
                        "name": "-w --width",
                        "content": "set output page width\n",
                        "flag": "-w",
                        "long": "--width"
                    },
                    {
                        "name": "--no-wrap",
                        "content": "do not break long message lines, longer than the output page width, into several lines\n",
                        "long": "--no-wrap"
                    },
                    {
                        "name": "Informative output:",
                        "content": ""
                    },
                    {
                        "name": "-h --help",
                        "content": "display this help and exit\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-V --version",
                        "content": "output version information and exit\n",
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Written by Bruno Haible.\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "Report  bugs in the bug tracker at <https://savannah.gnu.org/projects/gettext> or by email to\n<bug-gettext@gnu.org>.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright © 2001-2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL  version  3  or\nlater <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",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "The full documentation for msginit is maintained as a Texinfo manual.  If the  info  and  ms‐‐\nginit programs are properly installed at your site, the command\n\ninfo msginit\n\nshould give you access to the complete manual.\n\n\n\nGNU gettext-tools 0.21                       March 2022                                   MSGINIT(1)",
                "subsections": []
            }
        }
    }
}