﻿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
11915	language range request should return sublanguage	George Lund	Łukasz Langa	"If a user's browser includes a request for a language range including a parent language, sub-languages which match should be returned.

For example, if a user's browser sends a header
{{{
Accept-Language: pt
}}}
And my site has 
{{{
LANGUAGES = (
#...
  ('pt-br', 'Português (Brazil)'),
#...
)
}}}
Then the pt_BR locale files I have should be used. (RFC 2616: 'A language-range matches a language-tag if it exactly equals the tag, or if it exactly equals a prefix of the tag such that the first tag character following the prefix is ""-"".')

Right now the only way to get the Portugese returned is for me to relabel my local to just ""pt"" (which works except that the language will now be mislabelled in the Content-Language header).

"	Bug	closed	Internationalization	dev	Normal	fixed			Accepted	1	0	0	0	0	0
