Opened 5 years ago

Last modified 5 years ago

#31314 closed Bug

makemessages doesn't provide feedback when no locale is specified — at Version 1

Reported by: Cristóbal Mackenzie Owned by: nobody
Component: Core (Management commands) Version: 3.0
Severity: Normal Keywords: i18n
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Cristóbal Mackenzie)

makemessages requires that one of three flags be passed to specify locales for message building: --locale to explicitly specify locales, --exclude to specify locales to exclude, or --all to build message files for all locales.

When non of these flags are present, the command doesn't show any errors for the user. According to the source code, it should raise CommandError, but that never happens because of a bug in an if statement that checks if a locale has been specified.

I've already fixed this in my fork and have submitted a small PR.

https://github.com/django/django/pull/12503

Please point out if there are any other necessary steps to move this forward. Thanks!

Change History (1)

comment:1 by Cristóbal Mackenzie, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top