gettext PO and POT catalogs
Translate gettext catalogs without flattening their message model. autoglot retains contexts and comments, maps plural entries to the target language, and writes valid PO headers.
- Extensions
- .po, .pot
- Output model
- One PO catalog per target language
messages.pot
text
#. Cart summary
msgctxt "checkout"
msgid "%d item"
msgid_plural "%d items"
msgstr[0] ""
msgstr[1] ""de.po
text
#. Cart summary
msgctxt "checkout"
msgid "%d item"
msgid_plural "%d items"
msgstr[0] "%d Element"
msgstr[1] "%d Elemente"What autoglot preserves
- msgid, msgctxt, extracted comments, references, and flags
- Singular and plural message relationships
- Language-specific Plural-Forms headers
- printf placeholders and escaped multiline strings
Use a .pot template or a source-language .po file as input. Generated target files receive the correct gettext plural form count and rule for the requested language.