﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28546	Add support for private subtags in translation's to_locale().	Ronnie van den Crommenacker	Brent Hand	"In Dutch we make a difference between formal and informal communications.
We're starting to implement this by using a private subtag nl-nl-x-informal
https://www.w3.org/International/articles/language-tags/#extension

Because of the sr-latn exception in the to_locale function the private subtag is formatted wrong.

{{{#!python
>>> from django.utils.translation.trans_real import to_locale
>>> to_locale('nl-nl-x-informal')
nl_Nl-x-informal
}}}

While the country code should be with a capital L:
{{{#!python
nl_NL-x-informal
}}}
"	Bug	closed	Internationalization	dev	Normal	fixed	i18n, translation, language		Accepted	1	0	0	1	1	0
