Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#22328 closed New feature (fixed)

Add --exclude option to compilemessages

Reported by: Ana Krivokapic Owned by: Ana Krivokapic
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: loic@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Add an option to the compilemessages management command, to enable exclusion of specific locales.

E.g:

python manage.py compilemessages --exclude fr --exclude es

would compile all the languages except for French and Spanish.

Change History (7)

comment:1 by Ana Krivokapic, 10 years ago

Status: newassigned

comment:2 by Ana Krivokapic, 10 years ago

Version: 1.6master

comment:4 by Claude Paroz, 10 years ago

Triage Stage: UnreviewedAccepted

comment:5 by loic84, 10 years ago

Cc: loic@… added
Resolution: fixed
Status: assignedclosed

comment:6 by loic84, 10 years ago

The -e shorthand introduced for makemessages --exclude caused a regression due to a conflict with the existing makemessages --extensions.

Refs https://groups.google.com/d/topic/django-developers/a7jksjMWmbY/discussion.

Backward compatible options are:

  1. no shorthand at all for the two commands.
  2. no shorthand for makemessages.
  3. change both shorthands to -x (eXclude).

I went with option 3 in https://github.com/django/django/pull/2621, feedback welcome.

comment:7 by Loic Bistuer <loic.bistuer@…>, 10 years ago

In d1799233f46c39379fe429a4ece128d96b128006:

Fixed clash caused by the newly introduced -e shorthand for makemessages --exclude.

This fixes a regression caused by 0707b82. Refs #22328.

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