gh-79516: allow msgfmt.py to compile multiple input po files#10875
gh-79516: allow msgfmt.py to compile multiple input po files#10875s-ball wants to merge 70 commits intopython:mainfrom
Conversation
Test option processing, and conversion of one single file with or without the -o option. Also test the little documented behaviour of merging two input files with -o option.
Also show that it is now possible to build multiple po files in one single script call.
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Our records indicate we have not received your CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. If you have recently signed the CLA, please wait at least one business day You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
When merging main into multi_inputs, the reference to os_helper was erroneously removed.
In 2018, all imports came from the test.support package. They are now splitted among various subpackages.
|
My patches now successfully pass all tests. Is there anything else I should do? |
The newly added tests require a 1.2 version.
Fixes a small bug introduced in previous commit (changed behaviour when an input file has an extension other than .po)
|
Ok the tests for the infile/outfile computations are passing. Back to the duplicate ids question, it should not be that hard:
For the tests, the current This would allow a better GNU msgfmt compatibility. Do you think that this should go into this PR or into a new one? |
|
Started working on that point, and I fell not on technical but behavior questions. If you think that this points requires a longer discussion, or that it should be discussed on a different place, then it means that we should handle it in a followup PR. If you think that just making a special case for the header is reasonable, then I could implement it in a couple of days. |
compile_messages parameters order has changed in a previous commit to allow compiling multiple PO files.
|
There will be a lot of conflicts with my hashing pr… this pr changes quite a lot. What do we want to do? |
|
I was not very happy to reverse to parameters order of |
|
I guess it is up to @serhiy-storchaka who is the expert for msgfmt if I remember correctly as to what order we want these. (Who will have to deal with the conflicts) |
|
Before proceeding with this issue, we must solve other issues: |
|
|
Rename msgfmt to msgfmt_py accordingly with the changes in main
|
This PR is stale because it has been open for 30 days with no activity. |
|
This PR was marked as stale because of long inactivity. I could fix a conflict with the main branch and merge main, but that did not remove the stale label. Should I do anything else? |
|
This PR is stale because it has been open for 30 days with no activity. |
msgfmt.py (from Tools/i18n) can now reliably be passed more than one input po file.
In addition, its
makecentral function can reliably be called repeatedly, which fixes bpo-9741https://bugs.python.org/issue35335