﻿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
13575	nb/nn locale not a valid python locale	oyvind	nobody	"
If this code is run in the django shell:

{{{
#!python

from django.utils.translation.trans_real import get_language_from_request

g = get_language_from_request
from django.http import HttpRequest

r = HttpRequest()
r.COOKIES = {}
r.META = {'HTTP_ACCEPT_LANGUAGE': 'nb,nn;q=0.7,en;q=0.3'}

g(r)

}}}

The returned language code is ""en"".

The reason for this is that neither ""no"" or ""nn"" is in locale.locale_alias.

Attaching temporary fix.
"	Uncategorized	closed	Internationalization	dev	Normal	worksforme	locale python nb nn norwegian nynorsk		Unreviewed	0	0	0	0	1	0
