Opened 5 years ago

Last modified 5 years ago

#31314 closed Bug

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

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

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 will submit a small PR.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top