#32144 closed Bug (fixed)
makemessages leaves temporary files when locale directory doesn't exist.
Description ¶
If you run makemessages and you end up with the error message "Unable to find a locale path to store translations for file [...]", you get a lot of temporary files left over that you need to clean up.
The fix is pretty trivial so a PR is on the way.
Change History (7)
comment:1 by , 4 years ago
Has patch: | set |
---|
comment:2 by , 4 years ago
Needs tests: | set |
---|---|
Owner: | changed from | to
Patch needs improvement: | set |
Status: | new → assigned |
Summary: | makemessages leaves temporary files in an error case → makemessages leaves temporary files when locale directory doesn't exist. |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 4 years ago
Needs tests: | unset |
---|---|
Patch needs improvement: | unset |
Author updated patch with a test and seeks feedback on new approach.
comment:4 by , 4 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Verified regression test fails on main. Speaking of which, the regression test targets the additional case Anders found, so the title of the patch might be edited to be made more general, but I will leave that for others.
PR at https://github.com/django/django/pull/13609