zonemaster-cli icon indicating copy to clipboard operation
zonemaster-cli copied to clipboard

Remove formatting from messages handled by translations

Open matsduf opened this issue 2 years ago • 1 comments

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"

matsduf avatar May 23 '23 13:05 matsduf

Linking issue https://github.com/zonemaster/zonemaster-cli/issues/194 which might be an older version of this one.

ghost avatar May 25 '23 08:05 ghost