mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #28546 -- Fixed translation's to_locale() with langauge subtags.
Thanks Brent Hand for the initial patch.
This commit is contained in:
@@ -268,6 +268,8 @@ class TranslationTests(SimpleTestCase):
|
||||
('sr-latn', 'sr_Latn'),
|
||||
('sr-LATN', 'sr_Latn'),
|
||||
# With private use subtag (x-informal).
|
||||
('nl-nl-x-informal', 'nl_NL-x-informal'),
|
||||
('NL-NL-X-INFORMAL', 'nl_NL-x-informal'),
|
||||
('sr-latn-x-informal', 'sr_Latn-x-informal'),
|
||||
('SR-LATN-X-INFORMAL', 'sr_Latn-x-informal'),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user