json2po-stream
Create .po files.
Pipe ndjson in and get a .po formatted file out.
The ndjson objects should be entries and look something like this:
Output:
msgid "Untranslated string"
msgstr "Translated string"
Ok so thats fun...but what about
Multi line strings
Output:
msgid ""
msgstr ""
"Language: en\n"
"Content-Type: text/plain; charset=UTF-8\n"
Plurals
Output:
msgid "found %d fatal error"
msgid_plural "found %d fatal errors"
msgstr[0] "s'ha trobat %d error fatal"
msgstr[1] "s'han trobat %d errors fatals"
Context
msgctxt "Languages"
msgid "2co_enable_fraud_verification"
msgstr "Enable support of fraud notification"
Comments
# Base pack of "English" language variables
# Compiled by computer
#. Enable support of fraud notification
#: src/msgcmp.c:338 src/po-lex.c:699
#, c-format
msgid "found %d fatal error"
msgstr "Status for orders with failed fraud review"