1
0
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:
Tim Graham
2017-09-07 10:09:07 -04:00
parent 9829b75d5b
commit 0c4ac12a7b
2 changed files with 14 additions and 7 deletions

View File

@@ -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'),
)