mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #32581 -- Prevented to_locale() from corrupting locale names.
This commit is contained in:
committed by
Mariusz Felisiak
parent
9d130920e6
commit
d11b9ffcc0
@@ -313,12 +313,16 @@ class TranslationTests(SimpleTestCase):
|
||||
('EN', 'en'),
|
||||
('en-us', 'en_US'),
|
||||
('EN-US', 'en_US'),
|
||||
('en_US', 'en_US'),
|
||||
# With > 2 characters after the dash.
|
||||
('sr-latn', 'sr_Latn'),
|
||||
('sr-LATN', 'sr_Latn'),
|
||||
('sr_Latn', 'sr_Latn'),
|
||||
# 3-char language codes.
|
||||
('ber-MA', 'ber_MA'),
|
||||
('BER-MA', 'ber_MA'),
|
||||
('BER_MA', 'ber_MA'),
|
||||
('ber_MA', 'ber_MA'),
|
||||
# With private use subtag (x-informal).
|
||||
('nl-nl-x-informal', 'nl_NL-x-informal'),
|
||||
('NL-NL-X-INFORMAL', 'nl_NL-x-informal'),
|
||||
|
||||
Reference in New Issue
Block a user