diff options
| author | Bouke Haarsma <bouke@webatoom.nl> | 2013-11-12 07:54:01 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-02-26 16:58:04 +0100 |
| commit | 2bab9d6d9ea095c4bcaeede2df576708afd46291 (patch) | |
| tree | 8225995e22d76818f9659ceff5629a30d4a38d2d /docs/ref/forms | |
| parent | 48a8b714d49d7a4ceee66473aea72c2d8c84a672 (diff) | |
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.
Diffstat (limited to 'docs/ref/forms')
0 files changed, 0 insertions, 0 deletions
