-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Incorrect handling for msgctxt in msgfmt.py #85012
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
Comments
Running msgfmt.py with the attached po file will produce an incorrect context for the entry "test". Looking at the script, we require a comment to follow a contexted section for the context to be cleared. The gettext documentation makes clear that all comments are optional, so this is not desired behaviour. My reading of the gettext documentation has a "msgctxt" line applying only to the current entry, so it should be cleared once the last msgstr has been written for that entry. I will endeavour to provide a patch within the next day or two. |
Test po file included |
And a patch: After the end of a message entry the options for the next line are:
|
Does |
There is |
…H-130525) Add also human-readable snapshots for tests.
… with msgfmt (pythonGH-130525) Add also human-readable snapshots for tests. (cherry picked from commit 7ea6e88) Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
… with msgfmt (pythonGH-130525) Add also human-readable snapshots for tests. (cherry picked from commit 7ea6e88) Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
… with msgfmt (pythonGH-130525) (pythonGH-131206) Add also human-readable snapshots for tests. (cherry picked from commit 7ea6e88) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
…sgfmt (pythonGH-130525) Add also human-readable snapshots for tests.
…sgfmt (pythonGH-130525) Add also human-readable snapshots for tests.
Uh oh!
There was an error while loading. Please reload this page.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
msgctxt
when compiling messages withmsgfmt
#130525The text was updated successfully, but these errors were encountered: