#36642: makemessages provides invalid locale suggestions when attempting to 
format
the locale string
--------------------------------------+------------------------------------
     Reporter:  ontowhee              |                    Owner:  ontowhee
         Type:  Bug                   |                   Status:  assigned
    Component:  Internationalization  |                  Version:  5.2
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Changes (by Natalia Bidart):

 * stage:  Unreviewed => Accepted
 * type:  Uncategorized => Bug

Comment:

 Hello Lilian! Thank you for your ticket. I think there is definitely room
 for improvement here, so I'm accepting the ticket on that basis.

 A few notes on when I tried to reproduce:
 * The command execution needs the `--locale` (or `-l`) param, otherwise I
 wasn't able to reproduce. So:
 {{{
 $ python manage.py makemessages --locale zh-hans
 invalid locale zh-hans, did you mean zh_HAns?
 }}}
 * Using `zh_HAns` did not return any error for me, instead it generated a
 `locale/zh_HAns/LC_MESSAGES/django.po` file with the correct content.
 * But surprisingly, I also typoed the command and ran `python manage.py
 makemessages -l zh_HAns?` and it also generated a
 `locale/zh_HAns\?/LC_MESSAGES/django.po` with the correct content!
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36642#comment:2>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070199c19ab222-911eceb0-77d8-4af7-9f48-99336d01c23d-000000%40eu-central-1.amazonses.com.

Reply via email to