﻿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
30272	get_language_from_request(..., check_path=True) not respecting i18n_patterns prefix_default_language=False	Stefan Wehrmeyer	nobody	"Starting in Django 1.10 `django.conf.urls.i18n.i18n_patterns` accepts an option `prefix_default_language` that can be set to `False`. This adds no language prefix for the the default language when reversing URLs.

`django.utils.translation.get_language_from_path` is supposed to detect the language from the URL path. At the moment it returns `None` when no language URL prefix is found. I would argue that if the path is resolved by `i18n_patterns` with `prefix_default_language=False` `get_language_from_path` should return the default language (`settings.LANGUAGE_CODE`)

I believe the intention of using `i18n_patterns` and setting `prefix_default_language=False` is two-fold:
- construct URLs in the default language without a language prefix (this works now)
- detect non-prefixed URLs as using the default language (currently *not* working, falls back to session, cookie, HTTP headers)

Let me know if you consider this a bug."	Bug	closed	Internationalization	2.1	Normal	wontfix			Unreviewed	1	0	0	0	0	0
