| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
cc @StanFromIreland @m-aciek just in case |
Sorry, something went wrong.
There was a problem hiding this comment.
The 69402a5 changeset does not look particularly readable. For some reasons this change causes changing the order of the _catalog items, so it is difficult to see changes in values if the items are reordered. Do you know why is it? Can the order be made more stable?
There are no new tests, so we can only visually control that the behavior is correct. But if in future the order will be change unpredictably, we can miss a regression. Please add a test for the change, preferably a translation test that does not depend on implementation details of GNUTranslations.
Sorry, something went wrong.
It was sorted, the issue was that the message context was/is part of the message and so fixing that resulted in many messages being reordered. I changed the sorting to always put plurals at the end which produces IMO a much more readable diff: 8295b2b
Added in 97d0a0f. It tests all mesages from the source PO file. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM.
Sorry, something went wrong.
|
Thanks @tomasr8 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
Thanks @tomasr8 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
|
Sorry, @tomasr8 and @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict. cherry_picker 7ea6e88eb490635518c63c3305c03baf3e151555 3.12 |
Sorry, something went wrong.
|
Sorry, @tomasr8 and @serhiy-storchaka, I could not cleanly backport this to 3.13 due to a conflict. cherry_picker 7ea6e88eb490635518c63c3305c03baf3e151555 3.13 |
Sorry, something went wrong.
… 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>
|
GH-131205 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
… 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>
|
GH-131206 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
|
Thanks for dealing with the backports Serhiy, I was going to do it but you beat me to it 😄 |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot aarch64 Android 3.13 (tier-3) has failed when building commit 78f75d3. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/#/builders/1590/builds/507 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Click to see traceback logsTraceback (most recent call last):
File "/data/user/0/org.python.testbed/files/python/lib/python3.13/test/test_os.py", line 2402, in test_fpathconf
self.check(os.pathconf, "PC_NAME_MAX")
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/org.python.testbed/files/python/lib/python3.13/test/test_os.py", line 2325, in check
f(os_helper.make_bad_fd(), *args, **kwargs)
~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: unrecognized configuration name
|
Sorry, something went wrong.
… 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.
| Back | FazBrowse Home | New Git URL |
I realized that the downside of only having binary snapshots is that it's much more difficult to review any changes. So I added human-readable snapshots as well in this PR.
These snapshots are just JSON dumps of GNUTranslations._catalog when the MO file is read back. (I thought about using PO files for the snapshots but that would require some additional changes in pygettext so I opted for this for now)
I first generated the new snapshots and then applied the fix so you can see the diff in the snapshots here: 69402a5
What you're looking for is correct msgctxt (the part before \u0004 in each message). This is the source file for reference:
https://github.com/python/cpython/blob/main/Lib/test/test_tools/msgfmt_data/general.po