1
0
mirror of https://github.com/django/django.git synced 2025-02-02 21:59:53 +00:00
Bouke Haarsma 2bab9d6d9e Fixed #21389 -- Accept most valid language codes
By removing the 'supported' keyword from the detection methods and only relying
on a cached settings.LANGUAGES, the speed of said methods has been improved;
around 4x raw performance. This allows us to stop checking Python's incomplete
list of locales, and rely on a less restrictive regular expression for
accepting certain locales.

HTTP Accept-Language is defined as being case-insensitive, based on this fact
extra performance improvements have been made; it wouldn't make sense to
check for case differences.
2014-02-26 16:58:04 +01:00
..
2013-10-10 16:49:20 -04:00
2013-10-10 16:49:20 -04:00
2013-03-22 13:50:07 -04:00
2013-10-10 16:49:20 -04:00
2013-10-10 16:49:20 -04:00
2014-02-25 10:28:32 -05:00
2014-02-25 10:28:32 -05:00
2014-02-25 10:28:32 -05:00
2013-09-10 21:07:22 -04:00
2013-09-15 14:14:26 -04:00
2013-11-07 09:42:25 -05:00
2013-03-28 15:03:19 -05:00
2013-09-10 21:07:22 -04:00
2013-09-15 14:14:26 -04:00
2013-11-09 10:17:17 -05:00