#29712: Add warning in makemessages command if the localecode with `l` flag is 
not
correct
-------------------------------------+-------------------------------------
     Reporter:  Sanyam Khurana       |                    Owner:  Vishvajit
         Type:                       |  Pathak
  Cleanup/optimization               |                   Status:  assigned
    Component:                       |                  Version:  master
  Internationalization               |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Nick Pope):

 Replying to [comment:13 Claude Paroz]:
 > Improving documentation is welcome, but silently accepting a wrong
 language code also look a bit suspicious. I think I would be happy with a
 warning without coercing anything.

 I agree. I think a warning would make sense, without coercion.

 It is still possible to provide a locale to {{{makemessages}}} where there
 are no actual message catalogs in any of the paths in
 `settings.LOCALE_PATHS`.
 We should probably scrap all the normalization stuff and just output a
 warning message if a locale specified by the user is not in
 {{{all_locales}}}.
 At the moment we output a {{{"processing locale xx_XX"}}} message if
 {{{verbosity > 0}}} which should be fixed to only happen for valid,
 existing locales.

 As an aside, this is checking {{{--locale}}} for {{{makemessages}}}, but
 what about {{{compilemessages}}}? (And are their any others?)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29712#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.45fd2dc23214b16640bb068455284cf5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to