Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove formatting from messages handled by translations #330

Open
matsduf opened this issue May 23, 2023 · 1 comment
Open

Remove formatting from messages handled by translations #330

matsduf opened this issue May 23, 2023 · 1 comment
Labels
A-Translation Area: Documentation of, implementation of or actual translation of text
Milestone

Comments

@matsduf
Copy link
Contributor

matsduf commented May 23, 2023

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 matsduf added the A-Translation Area: Documentation of, implementation of or actual translation of text label May 23, 2023
@matsduf matsduf added this to the v2023.2 milestone May 23, 2023
@ghost
Copy link

ghost commented May 25, 2023

Linking issue #194 which might be an older version of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Translation Area: Documentation of, implementation of or actual translation of text
Projects
None yet
Development

No branches or pull requests

1 participant