django1/tests/i18n
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
..
commands Fixed #21732 -- Made compilemessages complain about non-writable location 2014-02-18 13:38:06 +01:00
contenttypes Removed superfluous uses of TransRealMixin. 2014-01-27 22:01:22 +01:00
other Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
patterns Imported override_settings from its new location. 2013-12-23 21:37:56 +01:00
project_dir Enabled makemessages to support several translation directories 2013-11-30 11:00:23 +01:00
resolution Removed superfluous models.py files. 2013-12-17 11:16:48 +01:00
__init__.py Fixed #21307 -- Moved TransRealMixin to django.test.utils. 2013-10-22 22:19:56 -03:00
forms.py PEP8 cleanup 2013-11-02 23:50:49 -05:00
models.py PEP8 cleanup 2013-11-02 23:50:49 -05:00
test_compilation.py Fixed #21732 -- Made compilemessages complain about non-writable location 2014-02-18 13:38:06 +01:00
test_extraction.py Imported override_settings from its new location. 2013-12-23 21:37:56 +01:00
tests.py Fixed #21389 -- Accept most valid language codes 2014-02-26 16:58:04 +01:00
urls.py Fixed #14825 -- LocaleMiddleware keeps language 2013-05-25 10:52:54 +02:00