zonemaster-cli
zonemaster-cli copied to clipboard
Remove formatting from messages handled by translations
The messages (msgid) that go through translation, i.e. end up in PO files, should preferably not contain empty lines or final line endings. Additional line endings should be added in the context where the message is printed.
Examples of msgid that need updates (there are more).
Remove line ending and empty line:
msgid ""
"Warning: setting locale category LC_MESSAGES to %s failed (is it installed "
"on this system?).\n"
"\n"
Remove line ending:
msgid ""
"--level must be one of CRITICAL, ERROR, WARNING, NOTICE, INFO, DEBUG, DEBUG2 "
"or DEBUG3.\n"
Remove empty line, leading white space and split into two msgid to move tabulator out of msgid:
msgid ""
"\n"
"\n"
" Level\tNumber of log entries"
Linking issue https://github.com/zonemaster/zonemaster-cli/issues/194 which might be an older version of this one.