{
    "content": [
        {
            "type": "text",
            "text": "# Locale::Maketext::Lexicon::Gettext (perldoc)\n\n## NAME\n\nLocale::Maketext::Lexicon::Gettext - PO and MO file parser for Maketext\n\n## SYNOPSIS\n\nCalled via Locale::Maketext::Lexicon:\npackage Hello::I18N;\nuse base 'Locale::Maketext';\nuse Locale::Maketext::Lexicon {\nde => [Gettext => 'hello/de.mo'],\n};\nDirectly calling \"parse()\":\nuse Locale::Maketext::Lexicon::Gettext;\nmy %Lexicon = %{ Locale::Maketext::Lexicon::Gettext->parse(<DATA>) };\nDATA\n#: Hello.pm:10\nmsgid \"Hello, World!\"\nmsgstr \"Hallo, Welt!\"\n#: Hello.pm:11\nmsgid \"You have %quant(%1,piece) of mail.\"\nmsgstr \"Sie haben %quant(%1,Poststueck,Poststuecken).\"\n\n## DESCRIPTION\n\nThis module implements a perl-based \"Gettext\" parser for Locale::Maketext. It transforms all %1,\n%2, <%*>... sequences to \"[1]\", \"[2]\", \"[*]\", and so on. It accepts either plain PO file, or\na MO file which will be handled with a pure-perl parser adapted from Imacat's\n\"Locale::Maketext::Gettext\".\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS**\n- **SEE ALSO**\n- **AUTHORS**\n- **COPYRIGHT**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Locale::Maketext::Lexicon::Gettext",
        "section": "",
        "mode": "perldoc",
        "summary": "Locale::Maketext::Lexicon::Gettext - PO and MO file parser for Maketext",
        "synopsis": "Called via Locale::Maketext::Lexicon:\npackage Hello::I18N;\nuse base 'Locale::Maketext';\nuse Locale::Maketext::Lexicon {\nde => [Gettext => 'hello/de.mo'],\n};\nDirectly calling \"parse()\":\nuse Locale::Maketext::Lexicon::Gettext;\nmy %Lexicon = %{ Locale::Maketext::Lexicon::Gettext->parse(<DATA>) };\nDATA\n#: Hello.pm:10\nmsgid \"Hello, World!\"\nmsgstr \"Hallo, Welt!\"\n#: Hello.pm:11\nmsgid \"You have %quant(%1,piece) of mail.\"\nmsgstr \"Sie haben %quant(%1,Poststueck,Poststuecken).\"",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 22,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 20,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Locale::Maketext::Lexicon::Gettext - PO and MO file parser for Maketext\n",
                "subsections": []
            },
            "VERSION": {
                "content": "version 1.00\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "Called via Locale::Maketext::Lexicon:\n\npackage Hello::I18N;\nuse base 'Locale::Maketext';\nuse Locale::Maketext::Lexicon {\nde => [Gettext => 'hello/de.mo'],\n};\n\nDirectly calling \"parse()\":\n\nuse Locale::Maketext::Lexicon::Gettext;\nmy %Lexicon = %{ Locale::Maketext::Lexicon::Gettext->parse(<DATA>) };\nDATA\n#: Hello.pm:10\nmsgid \"Hello, World!\"\nmsgstr \"Hallo, Welt!\"\n\n#: Hello.pm:11\nmsgid \"You have %quant(%1,piece) of mail.\"\nmsgstr \"Sie haben %quant(%1,Poststueck,Poststuecken).\"\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module implements a perl-based \"Gettext\" parser for Locale::Maketext. It transforms all %1,\n%2, <%*>... sequences to \"[1]\", \"[2]\", \"[*]\", and so on. It accepts either plain PO file, or\na MO file which will be handled with a pure-perl parser adapted from Imacat's\n\"Locale::Maketext::Gettext\".\n\nSince version 0.03, this module also looks for \"%*function*(*args...*)\" in the lexicon strings,\nand transform it to \"[*function*,*args...*]\". Any %1, %2... sequences inside the *args* will\nhave their percent signs (\"%\") replaced by underscores (\"\").\n\nThe name of *function* above should begin with a letter or underscore, followed by any number of\nalphanumeric characters and/or underscores. As an exception, the function name may also consist\nof a single asterisk (\"*\") or pound sign (\"#\"), which are \"Locale::Maketext\"'s shorthands for\n\"quant\" and \"numf\", respectively.\n\nAs an additional feature, this module also parses MIME-header style metadata specified in the\nnull msgstr (\"\"), and add them to the %Lexicon with a \"\" prefix. For example, the example\nabove will set \"Content-Type\" to \"text/plain; charset=iso8859-1\", without the newline or the\ncolon.\n\nAny normal entry that duplicates a metadata entry takes precedence. Hence, a \"msgid\n\"Content-Type\"\" line occurs anywhere should override the above value.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "usefuzzy\nWhen parsing PO files, fuzzy entries (entries marked with \"#, fuzzy\") are silently ignored. If\nyou wish to use fuzzy entries, specify a true value to the \"usefuzzy\" option:\n\nuse Locale::Maketext::Lexicon {\nde => [Gettext => 'hello/de.mo'],\nusefuzzy => 1,\n};\n\nallowempty\nWhen parsing PO files, empty entries (entries with \"msgstr \"\"\") are silently ignored. If you\nwish to allow empty entries, specify a true value to the \"allowempty\" option:\n\nuse Locale::Maketext::Lexicon {\nde => [Gettext => 'hello/de.mo'],\nallowempty => 1,\n};\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Locale::Maketext, Locale::Maketext::Lexicon\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "*   Clinton Gormley <drtech@cpan.org>\n\n*   Audrey Tang <cpan@audreyt.org>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright 2002-2013 by Audrey Tang <cpan@audreyt.org>.\n\nThis software is released under the MIT license cited below.\n\nThe \"MIT\" License\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software\nand associated documentation files (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or\nsubstantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING\nBUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "This software is Copyright (c) 2014 by Audrey Tang.\n\nThis is free software, licensed under:\n\nThe MIT (X11) License\n",
                "subsections": []
            }
        }
    }
}