Typically, this breaks using e.g. `django.utils.translation.override` with
a locale code like `pt_BR` or `zh_Hans`. of course, we could document that
override takes a language code, not a locale code, but if we can support
both without much effort, this would be a lot better.
--
Ticket URL: <https://code.djangoproject.com/ticket/32581>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/14164 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32581#comment:1>
* owner: nobody => Claude Paroz
* status: new => assigned
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/32581#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32581#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"d11b9ffcc0b1d6b8e87df6319f09bf284196e41a" d11b9ffc]:
{{{
#!CommitTicketReference repository=""
revision="d11b9ffcc0b1d6b8e87df6319f09bf284196e41a"
Fixed #32581 -- Prevented to_locale() from corrupting locale names.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32581#comment:4>