Skip to content

Remove formatting from messages handled by translations #330

@matsduf

Description

@matsduf

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TranslationArea: Documentation of, implementation of or actual translation of text

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions