From 0c4ac12a7b4184ff2535faa7a0a79ee33c8fff7f Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 7 Sep 2017 10:09:07 -0400 Subject: Fixed #28546 -- Fixed translation's to_locale() with langauge subtags. Thanks Brent Hand for the initial patch. --- tests/i18n/tests.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index c33677c76a..449def5363 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -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'), ) -- cgit v1.3